https://github.com/python/cpython/commit/afaa3b02f79b16d175129e9c5cbf6660f7521a69 commit: afaa3b02f79b16d175129e9c5cbf6660f7521a69 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: brettcannon <[email protected]> date: 2025-12-04T00:16:37Z summary:
[3.14] Being more flexible in when not to explicitly set the sysroot when compiling for WASI (GH-142242) (GH-142246) Being more flexible in when not to explicitly set the sysroot when compiling for WASI (GH-142242) (cherry picked from commit c5252045d3a7164f1829503d122091b5e469fda3) Co-authored-by: Brett Cannon <[email protected]> files: M Tools/wasm/wasi/__main__.py diff --git a/Tools/wasm/wasi/__main__.py b/Tools/wasm/wasi/__main__.py index 628fbb10b630bc..62085dc0e64030 100644 --- a/Tools/wasm/wasi/__main__.py +++ b/Tools/wasm/wasi/__main__.py @@ -269,7 +269,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]
