summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains/Darwin.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Driver/ToolChains/Darwin.h')
-rw-r--r--clang/lib/Driver/ToolChains/Darwin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Darwin.h b/clang/lib/Driver/ToolChains/Darwin.h
index c861f172fe1..6d6493a6d1b 100644
--- a/clang/lib/Driver/ToolChains/Darwin.h
+++ b/clang/lib/Driver/ToolChains/Darwin.h
@@ -329,6 +329,9 @@ protected:
TargetInitialized = true;
TargetPlatform = Platform;
TargetVersion = VersionTuple(Major, Minor, Micro);
+ if (Platform == IPhoneOSSimulator || Platform == TvOSSimulator ||
+ Platform == WatchOSSimulator)
+ const_cast<Darwin *>(this)->setTripleEnvironment(llvm::Triple::Simulator);
}
bool isTargetIPhoneOS() const {
OpenPOWER on IntegriCloud