summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/darwin-ld.c
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-03-15 18:08:20 +0000
committerChris Bieneman <beanz@apple.com>2016-03-15 18:08:20 +0000
commit7f2844f8f7874ae559376d0349ee2f5d00b2185e (patch)
tree3ea7364c86823024b0bbc53252addd48047fe1b4 /clang/test/Driver/darwin-ld.c
parentef43d448d4729194a7fc2b24dcd6f85d42c3740f (diff)
downloadbcm5719-llvm-7f2844f8f7874ae559376d0349ee2f5d00b2185e.tar.gz
bcm5719-llvm-7f2844f8f7874ae559376d0349ee2f5d00b2185e.zip
[Driver] [Darwin] Fix linking libclang_rt.profile_*sim.a
Summary: isTarget*() calls are order-dependent. This is because iOS Sim *is* iOS. This means checks for the simulator version of the platform must always be ahead of checks for the embedded platform. Reviewers: zaks.anna, bogner Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D17947 llvm-svn: 263567
Diffstat (limited to 'clang/test/Driver/darwin-ld.c')
-rw-r--r--clang/test/Driver/darwin-ld.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/darwin-ld.c b/clang/test/Driver/darwin-ld.c
index ffef3b14785..e81d882a1b4 100644
--- a/clang/test/Driver/darwin-ld.c
+++ b/clang/test/Driver/darwin-ld.c
@@ -152,6 +152,12 @@
// RUN: FileCheck -check-prefix=LINK_NO_IOS_ARM64_CRT1 %s < %t.log
// LINK_NO_IOS_ARM64_CRT1-NOT: crt
+// RUN: %clang -target x86_64-apple-ios6.0 -miphoneos-version-min=6.0 -fprofile-instr-generate -### %t.o 2> %t.log
+// RUN: FileCheck -check-prefix=LINK_IOSSIM_PROFILE %s < %t.log
+// LINK_IOSSIM_PROFILE: {{ld(.exe)?"}}
+// LINK_IOSSIM_PROFILE: libclang_rt.profile_iossim.a
+// LINK_IOSSIM_PROFILE: libclang_rt.ios.a
+
// RUN: %clang -target arm64-apple-tvos8.3 -mtvos-version-min=8.3 -### %t.o 2> %t.log
// RUN: FileCheck -check-prefix=LINK_TVOS_ARM64 %s < %t.log
// LINK_TVOS_ARM64: {{ld(.exe)?"}}
OpenPOWER on IntegriCloud