summaryrefslogtreecommitdiff
path: root/test/Driver
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2019-08-27 18:26:36 +0000
committerAlex Lorenz <arphaman@gmail.com>2019-08-27 18:26:36 +0000
commitfff88111a219083406a561e1ff22f0280f021d6b (patch)
tree210df3b4321b5f0d4f597f7942c1e72a4bfe8103 /test/Driver
parent15de3806fecbbb1e3d8a59935a3e77887ef6b13f (diff)
downloadclang-fff88111a219083406a561e1ff22f0280f021d6b.tar.gz
[driver][xray] fix the macOS support checker by supporting -macos
triple in addition to -darwin The previous check incorrectly checked for macOS support by allowing -darwin triples only, and -macos triple was not supported. Differential Revision: https://reviews.llvm.org/D61758 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver')
-rw-r--r--test/Driver/XRay/xray-instrument-macos.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Driver/XRay/xray-instrument-macos.c b/test/Driver/XRay/xray-instrument-macos.c
new file mode 100644
index 0000000000..afccc62583
--- /dev/null
+++ b/test/Driver/XRay/xray-instrument-macos.c
@@ -0,0 +1,4 @@
+// RUN: %clang -o /dev/null -v -fxray-instrument -target x86_64-apple-macos10.11 -c %s
+// RUN: %clang -o /dev/null -v -fxray-instrument -target x86_64-apple-darwin15 -c %s
+// REQUIRES-ANY: x86_64, x86_64h
+typedef int a;