Skip to content

Commit 23922b8

Browse files
[clang] add llvm abi support
1 parent 70965ef commit 23922b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
15311531

15321532
// Check if the environment version is valid except wasm case.
15331533
llvm::Triple Triple = TC.getTriple();
1534-
if (!Triple.isWasm()) {
1534+
if (!Triple.isWasm() && Triple.getEnvironment() != llvm::Triple::LLVM) {
15351535
StringRef TripleVersionName = Triple.getEnvironmentVersionString();
15361536
StringRef TripleObjectFormat =
15371537
Triple.getObjectFormatTypeName(Triple.getObjectFormat());

0 commit comments

Comments
 (0)