diff options
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ #!/bin/bash -CC=clang +CC=gcc # Possible extra build flags # these are for compiling the compiler, and NOT for compiling the program itself. @@ -7,12 +7,12 @@ CC=clang # - must be set if the zero value of a pointer (as might be set by calloc/memset) # is not the NULL pointer. -ADDITIONAL_FLAGS='-Wno-unused-function -Wno-unneeded-internal-declaration' +ADDITIONAL_FLAGS='-Wno-unused-function' if [[ $CC == "clang" ]]; then WARNINGS='-Wall -Wextra -Wpedantic -Wshadow -Wimplicit-fallthrough' else - WARNINGS='-Wall -Wextra -Wpedantic -Wshadow' + WARNINGS='-Wall -Wextra -Wpedantic -Wshadow -Wno-pointer-to-int-cast' fi DEBUG_FLAGS="-O0 -g3 $WARNINGS -std=c11 -DTOC_DEBUG" |