summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/gcc-version-debug.c
diff options
context:
space:
mode:
authorSamuel Antao <sfantao@us.ibm.com>2015-01-05 17:07:42 +0000
committerSamuel Antao <sfantao@us.ibm.com>2015-01-05 17:07:42 +0000
commit4ae1f67ccfbb559139ea0015f2fe1750d9e2dfac (patch)
tree97cc29b75dffc08413dd81cbf7e4e89859795528 /clang/test/Driver/gcc-version-debug.c
parentf964df3640cc43aa3e7c3555dcfb349b39757fa7 (diff)
downloadbcm5719-llvm-4ae1f67ccfbb559139ea0015f2fe1750d9e2dfac.tar.gz
bcm5719-llvm-4ae1f67ccfbb559139ea0015f2fe1750d9e2dfac.zip
Fix clash of gcc toolchains in driver regression tests.
For some regression tests the path to the right toolchain is specified using the -sysroot switch. However, if clang was configured with a custom gcc toolchain (either by using GCC_INSTALL_PREFIX in cmake or the equivalent configure command), the path to the custom gcc toolchain path takes precedence to the one specified by sysroot. This causes several regression tests to fail as they will be using an unexpected path. This patch fixes this issue by adding --gcc-toolchain='' to all tests that rely on that. The empty string causes the driver to pick the path from sysroot instead. llvm-svn: 225182
Diffstat (limited to 'clang/test/Driver/gcc-version-debug.c')
-rw-r--r--clang/test/Driver/gcc-version-debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Driver/gcc-version-debug.c b/clang/test/Driver/gcc-version-debug.c
index ff38c280523..daa9606ef7a 100644
--- a/clang/test/Driver/gcc-version-debug.c
+++ b/clang/test/Driver/gcc-version-debug.c
@@ -1,4 +1,5 @@
// RUN: %clang -v --target=i386-unknown-linux \
+// RUN: --gcc-toolchain="" \
// RUN: --sysroot=%S/Inputs/debian_multiarch_tree 2>&1 | FileCheck %s
// CHECK: Found candidate GCC installation: {{.*}}Inputs{{.}}debian_multiarch_tree{{.}}usr{{.}}lib{{.}}gcc{{.}}i686-linux-gnu{{.}}4.5
OpenPOWER on IntegriCloud