[PATCH] D132400: [clang] Remove a FIXME that we can't fix
Nico Weber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 22 10:46:07 PDT 2022
thakis created this revision.
thakis added a reviewer: hans.
Herald added subscribers: pengfei, kristof.beyls.
Herald added a project: All.
thakis requested review of this revision.
Herald added a subscriber: MaskRay.
I added this recently, but it looks like several tests very intentionally
check that `-mios-version-min=foo --target=x86_64-apple-ios` does simulator
builds. So we can't easily remove this hack, even though it makes little
sense in an arm mac world. (Here, you _have_ to say
`-mios-simulator-version-min=` or `--target=arm64-apple-ios-simulator`.)
No behavior change.
The tests that check this:
Clang :: Driver/darwin-ld.c
Clang :: Driver/darwin-simulator-macro.c
Clang :: Driver/darwin-version.c
No behavior change.
https://reviews.llvm.org/D132400
Files:
clang/lib/Driver/ToolChains/Darwin.cpp
Index: clang/lib/Driver/ToolChains/Darwin.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Darwin.cpp
+++ clang/lib/Driver/ToolChains/Darwin.cpp
@@ -2241,7 +2241,6 @@
DarwinEnvironmentKind Environment = OSTarget->getEnvironment();
// Recognize iOS targets with an x86 architecture as the iOS simulator.
- // FIXME: Remove this.
if (Environment == NativeEnvironment && Platform != MacOS &&
Platform != DriverKit && OSTarget->canInferSimulatorFromArch() &&
getTriple().isX86())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132400.454566.patch
Type: text/x-patch
Size: 557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220822/21a3a147/attachment-0001.bin>
More information about the cfe-commits
mailing list