From: Petr Hosek Date: Wed, 1 Aug 2018 03:30:06 +0000 (+0000) Subject: [OpenEmbedded] Explicitly specify -rtlib in tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f832adb0f1844929953f6920acd0e1586b7c6e55;p=clang [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 --- 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