diff options
author | Petr Hosek <phosek@chromium.org> | 2018-08-01 03:30:06 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-08-01 03:30:06 +0000 |
commit | f832adb0f1844929953f6920acd0e1586b7c6e55 (patch) | |
tree | dda7c94c05b82e0513cf29d34ef1eb9557b0510e | |
parent | 5ee75be310d5b62315471e38e63603e7c5b5136f (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338482 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Driver/linux-ld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Driver/linux-ld.c b/test/Driver/linux-ld.c index 81cb7f8e73..787013931a 100644 --- a/test/Driver/linux-ld.c +++ b/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 |