diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2023-08-28 00:13:19 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2023-08-30 21:46:05 +0100 |
commit | cbbe8a87093995bcdec71771aca42dc098a4b37b (patch) | |
tree | e62a72767d886c3afcfb6f00f99163a7fd60b28e /compile | |
parent | d06e903e66a12319a3c0d1dd2d6f4bd7899fd669 (diff) |
Perform minor build script tidying
- Add a couple of overdue -Werrors that make life easier
- Reshuffle cc/ld flags a bit, mainly around -fuse-ld=lld
Diffstat (limited to 'compile')
-rwxr-xr-x | compile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -18,7 +18,8 @@ mkdir -p .build/include : "${HOSTCC:=clang}" warnings="-Wall -pedantic -Wno-parentheses -Wno-missing-braces \ --Wno-gnu-zero-variadic-macro-arguments" +-Wno-gnu-zero-variadic-macro-arguments -Werror=implicit-function-declaration \ +-Werror=vla" dbg=0 if [ "$dbg" = 1 ]; then @@ -38,7 +39,7 @@ cc() { if [ "$_mn" = " -DMODULE_NAME=con_" ]; then _mn=" -DMODULE_NAME=con" elif [ "$_mn" = "-DMODULE_NAME=sst" ]; then _mn=; fi # note: using typeof and bool from C23 - see detailed comment in compile.bat - $CC -m32 -c -flto -fpic -fno-ident $cflags $warnings -I.build/include \ + $CC -c -flto -fpic -fno-ident $cflags $warnings -I.build/include \ -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64$_mn \ -Dtypeof=__typeof -include stdbool.h -o ".build/${_bn%%.c}.o" "src/$1" } |