[clang] [clang] add llvm abi support (PR #121123)
Tristan Ross via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 6 20:14:17 PST 2025
================
@@ -1531,7 +1531,7 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
// Check if the environment version is valid except wasm case.
llvm::Triple Triple = TC.getTriple();
- if (!Triple.isWasm()) {
+ if (!Triple.isWasm() && Triple.getEnvironment() != llvm::Triple::LLVM) {
----------------
RossComputerGuy wrote:
The problem I was running into was I'd get invalid version error. My assumption was that the LLVM ABI would not have a version because that would be the version of the entire LLVM stack. I didn't see any other ways when grepping the source that could disable the error.
https://github.com/llvm/llvm-project/pull/121123
More information about the cfe-commits
mailing list