]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Look for -fdebug-prefix-map feature explicitly
authorAnders F Björklund <anders.f.bjorklund@gmail.com>
Sun, 1 Apr 2018 11:13:33 +0000 (13:13 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 23 Apr 2018 19:51:15 +0000 (21:51 +0200)
Seems like old clang-3.4 didn't have this feature, while the
newer MinGW might. So remove the hardcoding, and do the check.

test/suites/debug_prefix_map.bash

index 256d4cbc23c12b1eff27c3a4f55dd662622fd820..25cc36ff2248a4e5143c0d1de3912cf764babd8d 100644 (file)
@@ -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
 }