diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py --- a/llvm/utils/lit/lit/llvm/config.py +++ b/llvm/utils/lit/lit/llvm/config.py @@ -331,6 +331,8 @@ return False def make_itanium_abi_triple(self, triple): + if triple == "wasm32-wasi": + return triple m = re.match(r"(\w+)-(\w+)-(\w+)", triple) if not m: self.lit_config.fatal( @@ -342,6 +344,8 @@ return m.group(1) + "-" + m.group(2) + "-" + m.group(3) + "-gnu" def make_msabi_triple(self, triple): + if triple == "wasm32-wasi": + return 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)