]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Make “-fstack-usage” test work when $COMPILER is a masquerading ccache
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 17 Sep 2020 10:35:11 +0000 (12:35 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 17 Sep 2020 20:17:51 +0000 (22:17 +0200)
test/suites/direct.bash

index 206d6fd2cc7bab16fa55f35d85b67a47c7d9d519..be70156446db98fe983218b0f71c3ef0a8dd027f 100644 (file)
@@ -474,7 +474,7 @@ EOF
 int test() { return 0; }
 EOF
 
-    if $COMPILER -c -fstack-usage code.c >/dev/null 2>&1; then
+    if $REAL_COMPILER -c -fstack-usage code.c >/dev/null 2>&1; then
         $CCACHE_COMPILE -c -fstack-usage code.c
         expect_stat 'cache hit (direct)' 0
         expect_stat 'cache hit (preprocessed)' 0