backwards compatible

This commit is contained in:
slonkazoid 2024-12-29 22:55:26 +03:00
parent 9224afc09e
commit 4f2947d63d
Signed by: slonk
SSH key fingerprint: SHA256:tbZfJX4IOvZ0LGWOWu5Ijo8jfMPi78TU7x1VoEeCIjM

View file

@ -4,8 +4,7 @@ _try_cc() {
local infile
infile=$(mktemp --suffix .c)
cat > "$infile"
ccache hash_dir=false \
"${CC:-cc}" -o "$out" "$infile" "$@"
CCACHE_NOHASHDIR=1 ccache "${CC:-cc}" -o "$out" "$infile" "$@"
code=$?
rm "$infile" || :
return $?