summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/linux-ld.c
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-08-01 03:30:06 +0000
committerPetr Hosek <phosek@chromium.org>2018-08-01 03:30:06 +0000
commit78c20a8563941d853151fd660f3f3d78e25e6413 (patch)
treeac76d6f863d038f9c4b8bb20ddc28498805ce6df /clang/test/Driver/linux-ld.c
parent2ce191e22019203a62f3c589a4f32161c2d76eea (diff)
downloadbcm5719-llvm-78c20a8563941d853151fd660f3f3d78e25e6413.tar.gz
bcm5719-llvm-78c20a8563941d853151fd660f3f3d78e25e6413.zip
[OpenEmbedded] Explicitly specify -rtlib in tests
Tests added in r338294 implicitly assume that libgcc is the runtime library, but that's not the case when the user configures Clang to use compiler-rt in which case these tests will break. Explicitly request libgcc when invoking clang in these tests to avoid that. Differential Revision: https://reviews.llvm.org/D50123 llvm-svn: 338482
Diffstat (limited to 'clang/test/Driver/linux-ld.c')
-rw-r--r--clang/test/Driver/linux-ld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c
index 81cb7f8e73c..787013931a4 100644
--- a/clang/test/Driver/linux-ld.c
+++ b/clang/test/Driver/linux-ld.c
@@ -1816,7 +1816,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 \
+// RUN: --target=arm-oe-linux-gnueabi -rtlib=libgcc \
// RUN: --sysroot=%S/Inputs/openembedded_arm_linux_tree \
// RUN: | FileCheck --check-prefix=CHECK-OE-ARM %s
@@ -1835,7 +1835,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 \
+// RUN: --target=aarch64-oe-linux -rtlib=libgcc \
// RUN: --sysroot=%S/Inputs/openembedded_aarch64_linux_tree \
// RUN: | FileCheck --check-prefix=CHECK-OE-AARCH64 %s
OpenPOWER on IntegriCloud