mirror of
https://github.com/python/cpython.git
synced 2025-12-07 13:50:06 +00:00
Being more flexible in when not to explicitly set the sysroot when compiling for WASI (GH-142242)
This commit is contained in:
parent
547d8daf78
commit
c5252045d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue