From: Joel Rosdahl Date: Thu, 17 Sep 2020 10:35:11 +0000 (+0200) Subject: Make “-fstack-usage” test work when $COMPILER is a masquerading ccache X-Git-Tag: v4.0~88 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db423cffb5836e80c119bc12efa43642738ba7ef;p=thirdparty%2Fccache.git Make “-fstack-usage” test work when $COMPILER is a masquerading ccache --- diff --git a/test/suites/direct.bash b/test/suites/direct.bash index 206d6fd2c..be7015644 100644 --- a/test/suites/direct.bash +++ b/test/suites/direct.bash @@ -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