Merge pull request #30771 from DougGregor/stop-inferring-simulator

[Darwin] Further restrict inference of the simulator environment
This commit is contained in:
Doug Gregor
2020-04-17 20:59:39 -07:00
committed by GitHub
18 changed files with 119 additions and 87 deletions

View File

@@ -1341,6 +1341,9 @@ static bool areCompatibleArchitectures(const llvm::Triple &moduleTarget,
static bool areCompatibleOSs(const llvm::Triple &moduleTarget,
const llvm::Triple &ctxTarget) {
if (moduleTarget.getEnvironment() != ctxTarget.getEnvironment())
return false;
if (moduleTarget.getOS() == ctxTarget.getOS())
return true;