mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "[Darwin] Further restrict inference of the simulator environment"
This commit is contained in:
committed by
GitHub
parent
ea142dba02
commit
fbbf61f297
@@ -361,7 +361,7 @@ std::pair<bool, bool> LangOptions::setTarget(llvm::Triple triple) {
|
||||
// Set the "targetEnvironment" platform condition if targeting a simulator
|
||||
// environment. Otherwise _no_ value is present for targetEnvironment; it's
|
||||
// an optional disambiguating refinement of the triple.
|
||||
if (Target.isSimulatorEnvironment())
|
||||
if (swift::tripleIsAnySimulator(Target))
|
||||
addPlatformConditionValue(PlatformConditionKind::TargetEnvironment,
|
||||
"simulator");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user