]> 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, 1 Oct 2020 12:10:56 +0000 (14:10 +0200)
(cherry picked from commit db423cffb5836e80c119bc12efa43642738ba7ef)

test/suites/direct.bash

index d06e80860dcadc3798b22afb7bf5dcb9a2d6f47b..14a2770028e672bd8a0e15d9335273a4d919ca34 100644 (file)
@@ -361,7 +361,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