[llvm] [lit] Fix errors with wasm32-wasi (PR #92505)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 17 00:11:51 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-testing-tools
Author: YAMAMOTO Takashi (yamt)
<details>
<summary>Changes</summary>
This fixes errors like:
```
fatal: Could not turn 'wasm32-wasi' into Itanium ABI triple
```
---
Full diff: https://github.com/llvm/llvm-project/pull/92505.diff
1 Files Affected:
- (modified) llvm/utils/lit/lit/llvm/config.py (+4-4)
``````````diff
diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
index 1d4babc99984b..a80f552ed16e5 100644
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/llvm/utils/lit/lit/llvm/config.py
@@ -355,9 +355,8 @@ def get_clang_has_lsan(self, clang, triple):
def make_itanium_abi_triple(self, triple):
m = re.match(r"(\w+)-(\w+)-(\w+)", triple)
if not m:
- self.lit_config.fatal(
- "Could not turn '%s' into Itanium ABI triple" % triple
- )
+ # eg. wasm32-wasi comes here
+ return triple
if m.group(3).lower() != "windows":
# All non-windows triples use the Itanium ABI.
return triple
@@ -366,7 +365,8 @@ def make_itanium_abi_triple(self, triple):
def make_msabi_triple(self, triple):
m = re.match(r"(\w+)-(\w+)-(\w+)", triple)
if not m:
- self.lit_config.fatal("Could not turn '%s' into MS ABI triple" % triple)
+ # eg. wasm32-wasi comes here
+ return triple
isa = m.group(1).lower()
vendor = m.group(2).lower()
os = m.group(3).lower()
``````````
</details>
https://github.com/llvm/llvm-project/pull/92505
More information about the llvm-commits
mailing list