Skip to content

[lit] Fix errors with wasm32-wasi #92505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions llvm/utils/lit/lit/llvm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down
Loading