Skip to content

Commit 7f6a333

Browse files
committed
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.
1 parent fc7830a commit 7f6a333

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/IDE/Utils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ static std::string adjustClangTriple(StringRef TripleStr) {
227227
break;
228228
}
229229
OS << '-' << Triple.getVendorName() << '-' << Triple.getOSName();
230+
if (Triple.hasEnvironment())
231+
OS << '-' << Triple.getEnvironmentName();
230232
OS.flush();
231233
return Result;
232234
}

0 commit comments

Comments
 (0)