add optional ccache
This commit is contained in:
parent
ab9e017427
commit
1e913f8998
1 changed files with 10 additions and 1 deletions
9
pxl8.sh
9
pxl8.sh
|
|
@ -3,6 +3,11 @@
|
|||
set -e
|
||||
|
||||
CC="${CC:-gcc}"
|
||||
|
||||
if command -v ccache >/dev/null 2>&1; then
|
||||
CC="ccache $CC"
|
||||
fi
|
||||
|
||||
CFLAGS="-std=c23 -Wall -Wextra"
|
||||
LIBS="-lm"
|
||||
MODE="debug"
|
||||
|
|
@ -350,6 +355,10 @@ case "$COMMAND" in
|
|||
setup_sdl3
|
||||
print_info "Building pxl8 ($MODE mode)"
|
||||
|
||||
if [[ "$CC" == ccache* ]]; then
|
||||
print_info "Compiler cache: ccache enabled"
|
||||
fi
|
||||
|
||||
if [[ -n "$SIMD_FLAGS" ]]; then
|
||||
case "$(uname -m)" in
|
||||
x86_64|amd64)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue