diff options
| author | Uneven Prankster <unevenprankster@protonmail.com> | 2023-08-12 12:59:59 -0300 |
|---|---|---|
| committer | Uneven Prankster <unevenprankster@protonmail.com> | 2023-08-12 12:59:59 -0300 |
| commit | e7379bed59af0f50126af61953bc4f10af04a4dd (patch) | |
| tree | d99e98f0709821edccfa2ef1cbba9381a46abb22 /build.sh | |
| parent | a2cb2ee59296e466bab94d9a96c331648ef212b0 (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.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
