aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorUneven Prankster <unevenprankster@protonmail.com>2023-08-12 12:59:59 -0300
committerUneven Prankster <unevenprankster@protonmail.com>2023-08-12 12:59:59 -0300
commite7379bed59af0f50126af61953bc4f10af04a4dd (patch)
treed99e98f0709821edccfa2ef1cbba9381a46abb22 /build.sh
parenta2cb2ee59296e466bab94d9a96c331648ef212b0 (diff)
Few tweaks for proper compilation, config.h changes and removed tccdefs.h usage. Gunner's TCC fork is further functionally freestanding now.
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 5188d84..4c444f1 100644
--- a/build.sh
+++ b/build.sh
@@ -76,15 +76,15 @@ RAYLIB_SRC="$ROOT_DIR/$RAYLIB_SRC"
TINYCC_SRC="$ROOT_DIR/tinycc"
# Flags
-COMPILATION_FLAGS="-std=c99 -Os -flto -s -D__USE_MINGW_ANSI_STDIO=0 -mno-stack-arg-probe -Xlinker --stack=0x200000,0x200000
+COMPILATION_FLAGS="-std=gnu99 -Os -flto -s -D__USE_MINGW_ANSI_STDIO=0 -mno-stack-arg-probe -Xlinker --stack=0x200000,0x200000
-fno-asynchronous-unwind-tables -fwhole-program -Wl,--gc-sections -mavx"
FINAL_FLAGS=$COMPILATION_FLAGS
WARNING_FLAGS="-Wall -Wextra"
LINK_FLAGS="-lopengl32 -lgdi32 -lwinmm"
# Debug changes to flags
if [ -n "$BUILD_DEBUG" ]; then
- COMPILATION_FLAGS="-std=c99 -O0 -g3"
- FINAL_FLAGS="-std=c99 -Og -g3 -fsanitize-trap=undefined"
+ COMPILATION_FLAGS="-std=gnu99 -O0 -g3"
+ FINAL_FLAGS="-std=gnu99 -Og -g3 -fsanitize-trap=undefined"
fi
# Display what we're doing