mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
IDE: preserve the environment in the triple
Adjust the triple manipulation to preserve the environment. This is particularly important for android which is an environment for Linux, and Windows, where we support specific environments only.
This commit is contained in:
@@ -227,6 +227,8 @@ static std::string adjustClangTriple(StringRef TripleStr) {
|
||||
break;
|
||||
}
|
||||
OS << '-' << Triple.getVendorName() << '-' << Triple.getOSName();
|
||||
if (Triple.hasEnvironment())
|
||||
OS << '-' << Triple.getEnvironmentName();
|
||||
OS.flush();
|
||||
return Result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user