diff --git a/scripts/build.sh b/scripts/build.sh index 36c0afa..f114b81 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,7 +1,8 @@ #!/bin/sh set -eu CC="${CC:-clang}" -CFLAGS="-O2 -falign-functions -Wall -Wno-strict-aliasing" +CFLAGS="-Wall -Wextra -Wno-strict-aliasing -std=gnu99" +CFLAGS="$CFLAGS -O2 -falign-functions" CFLAGS="$CFLAGS -I ../c -D NDEBUG -D USE_COMPUTED_GOTO" LFLAGS="-lm" builddir="build-$(uname | tr A-Z- a-z_)-$(uname -m | tr A-Z- a-z_)"