forked from OSchip/llvm-project
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. This patch contain the same kind of fixes as done in rC225182 llvm-svn: 339112
This commit is contained in:
parent
a2ddddfd3e
commit
d51f702f22
|
@ -498,6 +498,7 @@
|
|||
// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
|
||||
// RUN: -target arm-oe-linux-gnueabi -stdlib=libstdc++ \
|
||||
// RUN: --sysroot=%S/Inputs/openembedded_arm_linux_tree \
|
||||
// RUN: --gcc-toolchain="" \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-OE-ARM %s
|
||||
|
||||
// CHECK-OE-ARM: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
|
||||
|
@ -509,6 +510,7 @@
|
|||
// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
|
||||
// RUN: -target aarch64-oe-linux -stdlib=libstdc++ \
|
||||
// RUN: --sysroot=%S/Inputs/openembedded_aarch64_linux_tree \
|
||||
// RUN: --gcc-toolchain="" \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-OE-AARCH64 %s
|
||||
|
||||
// CHECK-OE-AARCH64: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
|
||||
|
|
|
@ -1817,6 +1817,7 @@
|
|||
// Check whether the OpenEmbedded ARM libs are added correctly.
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: --target=arm-oe-linux-gnueabi -rtlib=libgcc \
|
||||
// RUN: --gcc-toolchain="" \
|
||||
// RUN: --sysroot=%S/Inputs/openembedded_arm_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-OE-ARM %s
|
||||
|
||||
|
@ -1836,6 +1837,7 @@
|
|||
// Check whether the OpenEmbedded AArch64 libs are added correctly.
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: --target=aarch64-oe-linux -rtlib=libgcc \
|
||||
// RUN: --gcc-toolchain="" \
|
||||
// RUN: --sysroot=%S/Inputs/openembedded_aarch64_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-OE-AARCH64 %s
|
||||
|
||||
|
|
Loading…
Reference in New Issue