]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Being more flexible in when not to explicitly set the sysroot when compiling for...
authorBrett Cannon <brett@python.org>
Wed, 3 Dec 2025 23:42:10 +0000 (15:42 -0800)
committerGitHub <noreply@github.com>
Wed, 3 Dec 2025 23:42:10 +0000 (15:42 -0800)
Tools/wasm/wasi/__main__.py

index 06903fd25abe446db17ce56181274ffe30465cf4..d95cc99c8ea28b882f9c984d451900f99c4abce8 100644 (file)
@@ -271,7 +271,7 @@ def wasi_sdk_env(context):
     for env_var, binary_name in list(env.items()):
         env[env_var] = os.fsdecode(wasi_sdk_path / "bin" / binary_name)
 
-    if wasi_sdk_path != pathlib.Path("/opt/wasi-sdk"):
+    if not wasi_sdk_path.name.startswith("wasi-sdk"):
         for compiler in ["CC", "CPP", "CXX"]:
             env[compiler] += f" --sysroot={sysroot}"