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