We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70965ef commit 23922b8Copy full SHA for 23922b8
clang/lib/Driver/Driver.cpp
@@ -1531,7 +1531,7 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
1531
1532
// Check if the environment version is valid except wasm case.
1533
llvm::Triple Triple = TC.getTriple();
1534
- if (!Triple.isWasm()) {
+ if (!Triple.isWasm() && Triple.getEnvironment() != llvm::Triple::LLVM) {
1535
StringRef TripleVersionName = Triple.getEnvironmentVersionString();
1536
StringRef TripleObjectFormat =
1537
Triple.getObjectFormatTypeName(Triple.getObjectFormat());
0 commit comments