mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -1341,6 +1341,10 @@ static bool areCompatibleArchitectures(const llvm::Triple &moduleTarget,
|
||||
|
||||
static bool areCompatibleOSs(const llvm::Triple &moduleTarget,
|
||||
const llvm::Triple &ctxTarget) {
|
||||
if ((!moduleTarget.hasEnvironment() && ctxTarget.isSimulatorEnvironment()) ||
|
||||
(!ctxTarget.hasEnvironment() && moduleTarget.isSimulatorEnvironment()))
|
||||
return false;
|
||||
|
||||
if (moduleTarget.getOS() == ctxTarget.getOS())
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user