From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Alex Hochheiden Date: Wed, 1 Apr 2026 18:11:37 +0000 Subject: [PATCH] Bug 2023597 - Use `wasm32-wasip1` target for clang >= 22.1 r=firefox-build-system-reviewers,sergesanspaille https://github.com/llvm/llvm-project/pull/165345 https://releases.llvm.org/22.1.0/tools/clang/docs/ReleaseNotes.html Differential Revision: https://phabricator.services.mozilla.com/D291023 --- build/moz.configure/toolchain.configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/moz.configure/toolchain.configure b/build/moz.configure/toolchain.configure index a37ed610cc43..c7d0c8bdf75c 100644 --- a/build/moz.configure/toolchain.configure +++ b/build/moz.configure/toolchain.configure @@ -695,6 +695,9 @@ def check_compiler(configure_cache, compiler, language, target, android_version) # This makes clang define __ANDROID_API__ and use versioned library # directories from the NDK. toolchain = "%s%d" % (target.toolchain, android_version) + elif target.kernel == "WASI" and info.type == "clang" and info.version >= Version("22.1"): + # The wasm32-wasi target was renamed to wasm32-wasip1 in LLVM 22.1. + toolchain = "wasm32-wasip1" else: toolchain = target.toolchain