]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Apparently MinGW does not support debug-prefix-map
authorAnders Björklund <anders@itension.se>
Fri, 4 Mar 2016 10:04:01 +0000 (11:04 +0100)
committerAnders Björklund <anders@itension.se>
Fri, 4 Mar 2016 11:25:58 +0000 (12:25 +0100)
test.sh

diff --git a/test.sh b/test.sh
index f72774b79fd15b0d180237e2e91481f45aad543e..076445f87b609a42a6b296eb192fe465827fada0 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1681,7 +1681,7 @@ EOF
 
     ##################################################################
     # Check that gcc's -fdebug-prefix-map argument maps the debuginfo cwd.
-    if [ $COMPILER_TYPE_GCC -eq 1 ]; then
+    if [ $COMPILER_TYPE_GCC -eq 1 -a $COMPILER_USES_MINGW -eq 0 ]; then
         testname="debug-prefix-map"
         $CCACHE -Cz >/dev/null
         cd dir1
@@ -2541,6 +2541,7 @@ COMPILER_TYPE_CLANG=0
 COMPILER_TYPE_GCC=0
 
 COMPILER_USES_LLVM=0
+COMPILER_USES_MINGW=0
 
 HOST_OS_APPLE=0
 HOST_OS_LINUX=0
@@ -2565,6 +2566,12 @@ case $compiler_version in
         ;;
 esac
 
+case $compiler_version in
+    *mingw*)
+        COMPILER_USES_MINGW=1
+        ;;
+esac
+
 host_os="`uname -s`"
 case $host_os in
     *Darwin*)