mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
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:
parent
09565f002f
commit
a28385a06c
@ -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 "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user