fix: temporary kludge for clang

Adds a preload eval to set the -Wnounknown-warning-option flag in clang
-- this way, when different versions don't support our default flag set,
they can still run tests. Otherwise passing an unknown flag to clang
results in a compilation error.
This commit is contained in:
scottolsen 2023-01-31 11:14:11 -05:00
parent 09565f002f
commit a28385a06c

View File

@ -10,4 +10,6 @@ then
CARP="$CARP $BUILD_OPTS --"
fi
export CARP_DIR=`pwd`
$CARP $CARP_OPTS "$@"
# TODO: Temporary band-aid to make different versions of clang run tests OK when supported flag sets differ
EVAL='(Project.config "cflag" (cons "-Wno-unknown-warning-option" (Project.get-config "cflag")))'
$CARP --eval-preload "\'$EVAL\'" $CARP_OPTS "$@"