aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
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