[PATCH] D61758: [driver][xray] fix the macOS support checker by supporting -macos triple in addition to -darwin
Alex Lorenz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 11:34:12 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL370093: [driver][xray] fix the macOS support checker by supporting -macos (authored by arphaman, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D61758?vs=198897&id=217452#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61758/new/
https://reviews.llvm.org/D61758
Files:
cfe/trunk/lib/Driver/XRayArgs.cpp
cfe/trunk/test/Driver/XRay/xray-instrument-macos.c
Index: cfe/trunk/lib/Driver/XRayArgs.cpp
===================================================================
--- cfe/trunk/lib/Driver/XRayArgs.cpp
+++ cfe/trunk/lib/Driver/XRayArgs.cpp
@@ -52,7 +52,7 @@
} else if (Triple.isOSFreeBSD() ||
Triple.isOSOpenBSD() ||
Triple.isOSNetBSD() ||
- Triple.getOS() == llvm::Triple::Darwin) {
+ Triple.isMacOSX()) {
if (Triple.getArch() != llvm::Triple::x86_64) {
D.Diag(diag::err_drv_clang_unsupported)
<< (std::string(XRayInstrumentOption) + " on " + Triple.str());
Index: cfe/trunk/test/Driver/XRay/xray-instrument-macos.c
===================================================================
--- cfe/trunk/test/Driver/XRay/xray-instrument-macos.c
+++ cfe/trunk/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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61758.217452.patch
Type: text/x-patch
Size: 1074 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190827/0553f0b3/attachment.bin>
More information about the llvm-commits
mailing list