https://github.com/python/cpython/commit/c5252045d3a7164f1829503d122091b5e469fda3
commit: c5252045d3a7164f1829503d122091b5e469fda3
branch: main
author: Brett Cannon <[email protected]>
committer: brettcannon <[email protected]>
date: 2025-12-03T15:42:10-08:00
summary:
Being more flexible in when not to explicitly set the sysroot when compiling
for WASI (GH-142242)
files:
M Tools/wasm/wasi/__main__.py
diff --git a/Tools/wasm/wasi/__main__.py b/Tools/wasm/wasi/__main__.py
index 06903fd25abe44..d95cc99c8ea28b 100644
--- a/Tools/wasm/wasi/__main__.py
+++ b/Tools/wasm/wasi/__main__.py
@@ -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}"
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]