summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/sysroot-flags.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-07 20:14:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-07 20:14:31 +0000
commitc8f008f6494bfa3bea45438fb58e506e8604a5fc (patch)
tree6e26bab085f0f937c691997e363a2374efeb9cd0 /clang/test/Driver/sysroot-flags.c
parent2ceb347e8bce73d1e5c65d088abd69607a2ef638 (diff)
downloadbcm5719-llvm-c8f008f6494bfa3bea45438fb58e506e8604a5fc.tar.gz
bcm5719-llvm-c8f008f6494bfa3bea45438fb58e506e8604a5fc.zip
Use ld directly on linux. Changes from the previous try:
*) Try to detect as much as possible from the system itself, not the distro. This should make it easier to port to a new distro and more likely to work on a unknown one. *) The distro enum now doesn't include the arch. Just use the existing host detection support in LLVM. *) Correctly handle --sysroot. A small regression is that now clang will pass bitcode file to the linker. This is necessary for the gold plugin support to work. It might be better to detect this at configure/cmake time, but doing it in c++ first is a lot easier. llvm-svn: 118382
Diffstat (limited to 'clang/test/Driver/sysroot-flags.c')
-rw-r--r--clang/test/Driver/sysroot-flags.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Driver/sysroot-flags.c b/clang/test/Driver/sysroot-flags.c
index eedd7627b36..fde9105c10b 100644
--- a/clang/test/Driver/sysroot-flags.c
+++ b/clang/test/Driver/sysroot-flags.c
@@ -10,7 +10,7 @@
// RUN: --sysroot=/foo/bar -o /dev/null %s 2>&1 | \
// RUN: FileCheck %s -check-prefix=SYSROOT_EQ
// SYSROOT_EQ: "-isysroot" "/foo/bar"
-// SYSROOT_EQ: "--sysroot=/foo/bar"
+// SYSROOT_EQ: "--sysroot" "/foo/bar"
// Check for overriding the header sysroot by providing both --sysroot and
// -isysroot.
@@ -18,11 +18,11 @@
// RUN: --sysroot=/foo/bar -o /dev/null %s 2>&1 | FileCheck %s \
// RUN: -check-prefix=ISYSROOT_AND_SYSROOT
// ISYSROOT_AND_SYSROOT: "-isysroot" "/baz"
-// ISYSROOT_AND_SYSROOT: "--sysroot=/foo/bar"
+// ISYSROOT_AND_SYSROOT: "--sysroot" "/foo/bar"
// Check that omitting the equals works as well.
// RUN: %clang -### -ccc-host-triple x86_64-unknown-linux-gnu \
// RUN: --sysroot /foo/bar -o /dev/null %s 2>&1 | \
// RUN: FileCheck %s -check-prefix=SYSROOT_SEPARATE
// SYSROOT_SEPARATE: "-isysroot" "/foo/bar"
-// SYSROOT_SEPARATE: "--sysroot=/foo/bar"
+// SYSROOT_SEPARATE: "--sysroot" "/foo/bar"
OpenPOWER on IntegriCloud