From: Anders F Björklund Date: Sun, 1 Apr 2018 11:13:33 +0000 (+0200) Subject: Look for -fdebug-prefix-map feature explicitly X-Git-Tag: v3.4.3~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a21a136cce57095b18d6d827615d3761e0b57fb2;p=thirdparty%2Fccache.git Look for -fdebug-prefix-map feature explicitly Seems like old clang-3.4 didn't have this feature, while the newer MinGW might. So remove the hardcoding, and do the check. --- diff --git a/test/suites/debug_prefix_map.bash b/test/suites/debug_prefix_map.bash index 256d4cbc2..25cc36ff2 100644 --- a/test/suites/debug_prefix_map.bash +++ b/test/suites/debug_prefix_map.bash @@ -1,5 +1,6 @@ SUITE_debug_prefix_map_PROBE() { - if $COMPILER_USES_MINGW; then + touch test.c + if ! $REAL_COMPILER -c -fdebug-prefix-map=old=new test.c 2>/dev/null; then echo "-fdebug-prefix-map not supported by compiler" fi }