mirror of
https://github.com/reactos/ccache.git
synced 2025-03-03 08:18:28 +00:00
test: Check that compiler is actually able to use precompiled headers
This commit is contained in:
parent
9a5ce3c79e
commit
3f780612d9
4
test.sh
4
test.sh
@ -1604,10 +1604,10 @@ EOF
|
||||
cat <<EOF >pch.h
|
||||
#include <stdlib.h>
|
||||
EOF
|
||||
if $COMPILER -fpch-preprocess pch.h 2>/dev/null; then
|
||||
if $COMPILER -fpch-preprocess pch.h 2>/dev/null && [ -f pch.h.gch ] && $COMPILER pch.c -o pch; then
|
||||
:
|
||||
else
|
||||
echo "Compiler ($COMPILER) doesn't support precompiled headers -- not running pch test"
|
||||
echo "Compiler (`$COMPILER --version | head -1`) doesn't support precompiled headers -- not running pch test"
|
||||
return
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user