summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/dyld-prefix.c
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-05-27 21:40:20 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-05-27 21:40:20 +0000
commit9d9e1fc47953f6eac8855b17968322c63baed2d8 (patch)
tree6e211ee8699d2d3ef74e6c5cd5bd7a7efd825091 /clang/test/Driver/dyld-prefix.c
parent5b2669049ade12bbfd1c6f84d87c0d26c65678d4 (diff)
downloadbcm5719-llvm-9d9e1fc47953f6eac8855b17968322c63baed2d8.tar.gz
bcm5719-llvm-9d9e1fc47953f6eac8855b17968322c63baed2d8.zip
Driver: implement --dyld-prefix option.
This option is used to select a dynamic loader prefix to be used at runtime. Currently this is implemented for the Linux toolchain. Differential Revision: http://llvm-reviews.chandlerc.com/D851 llvm-svn: 182744
Diffstat (limited to 'clang/test/Driver/dyld-prefix.c')
-rw-r--r--clang/test/Driver/dyld-prefix.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Driver/dyld-prefix.c b/clang/test/Driver/dyld-prefix.c
new file mode 100644
index 00000000000..de24f009320
--- /dev/null
+++ b/clang/test/Driver/dyld-prefix.c
@@ -0,0 +1,7 @@
+// RUN: touch %t.o
+
+// RUN: %clang -target i386-unknown-linux --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-32 %s
+// CHECK-32: "-dynamic-linker" "/foo/lib/ld-linux.so.2"
+
+// RUN: %clang -target x86_64-unknown-linux --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-64 %s
+// CHECK-64: "-dynamic-linker" "/foo/lib64/ld-linux-x86-64.so.2"
OpenPOWER on IntegriCloud