Skip to content

Commit 1a860e7

Browse files
committed
[Simulators] Only infer simulator environment when there is no environment.
1 parent 8339f32 commit 1a860e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Basic/Platform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ bool swift::tripleInfersSimulatorEnvironment(const llvm::Triple &triple) {
4242
case llvm::Triple::IOS:
4343
case llvm::Triple::TvOS:
4444
case llvm::Triple::WatchOS:
45-
return !triple.isSimulatorEnvironment() &&
45+
return !triple.hasEnvironment() &&
4646
(triple.getArch() == llvm::Triple::x86 ||
4747
triple.getArch() == llvm::Triple::x86_64) &&
4848
!tripleIsMacCatalystEnvironment(triple);

0 commit comments

Comments
 (0)