From d2c6751b27c808a878ab7a7ec6c9acb00b437e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Bj=C3=B6rklund?= Date: Fri, 4 Mar 2016 11:04:01 +0100 Subject: [PATCH] Apparently MinGW does not support debug-prefix-map --- test.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test.sh b/test.sh index f72774b79f..076445f87b 100755 --- 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*)