kerep debug build

This commit is contained in:
2025-04-26 03:18:48 +05:00
parent 48d449a605
commit 63f0379df0
2 changed files with 10 additions and 3 deletions

View File

@@ -2,8 +2,15 @@
set -eo pipefail
CMP="gcc"
WARN="-std=c11 -Wall -Wno-discarded-qualifiers -Wno-unused-parameter"
ARGS="-O2"
WARN="-std=c99 -Wall -Wextra -Wno-discarded-qualifiers -Wno-unused-parameter"
ARGS_DEBUG="-O0 -g"
ARGS_RELEASE="-O2 -flto=auto -fdata-sections -ffunction-sections -Wl,--gc-sections"
if [[ "$1" = "debug" ]]; then
ARGS=$ARGS_DEBUG
else
ARGS=$ARGS_RELEASE
fi
SRC="$(find src -name '*.c')"
OS=$(../detect_os.sh)