summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-05-01 16:52:45 +0000
committerPetr Hosek <phosek@chromium.org>2019-05-01 16:52:45 +0000
commitfa78ad57edfd2fec2882c0ca1dbd7eec34051844 (patch)
treebea58c49e8dea961ef787ae6367700062571d115
parent65dc24293f9386d2d98c3b270bd2ed6f198210dc (diff)
downloadbcm5719-llvm-fa78ad57edfd2fec2882c0ca1dbd7eec34051844.tar.gz
bcm5719-llvm-fa78ad57edfd2fec2882c0ca1dbd7eec34051844.zip
[Driver] Explicitly request platform rtlib in the Driver pic test
This test checks whether crtbegin.o and crtend.o appear on the link line, but names of these files may be affected by the choice of the rtlib, specifically when compiler-rt is used as the default rtlib the names will be clang_rt.crtbegin.o and clang_rt.crtend.o instead of crtbeginS.o and crtendS.o. To avoid the test failure, explicitly request to use the platform rtlib. Differential Revision: https://reviews.llvm.org/D61383 llvm-svn: 359706
-rw-r--r--clang/test/Driver/pic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Driver/pic.c b/clang/test/Driver/pic.c
index 68a307914f6..c0cdeb464cb 100644
--- a/clang/test/Driver/pic.c
+++ b/clang/test/Driver/pic.c
@@ -123,15 +123,15 @@
// Make sure -pie is passed to along to ld and that the right *crt* files
// are linked in.
// RUN: %clang %s -target i386-unknown-freebsd -fPIE -pie -### \
-// RUN: --gcc-toolchain="" \
+// RUN: --gcc-toolchain="" -rtlib=platform \
// RUN: --sysroot=%S/Inputs/basic_freebsd_tree 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK-PIE-LD
// RUN: %clang %s -target i386-linux-gnu -fPIE -pie -### \
-// RUN: --gcc-toolchain="" \
+// RUN: --gcc-toolchain="" -rtlib=platform \
// RUN: --sysroot=%S/Inputs/basic_linux_tree 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK-PIE-LD
// RUN: %clang %s -target i386-linux-gnu -fPIC -pie -### \
-// RUN: --gcc-toolchain="" \
+// RUN: --gcc-toolchain="" -rtlib=platform \
// RUN: --sysroot=%S/Inputs/basic_linux_tree 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK-PIE-LD
//
OpenPOWER on IntegriCloud