@@ -121,7 +121,7 @@ def add_target_env(env, build_platform, target_triple, build_env):
121121 .replace ("x86_64_v3-" , "x86_64-" )
122122 .replace ("x86_64_v4-" , "x86_64-" )
123123 # TODO should the musl target be normalized?
124- .replace ("-unknown-linux-musl" , "-unknown-linux-gnu" )
124+ # .replace("-unknown-linux-musl", "-unknown-linux-gnu")
125125 )
126126
127127 # This will make x86_64_v2, etc count as cross-compiling. This is
@@ -506,6 +506,7 @@ def python_build_info(
506506 )
507507 )
508508
509+ # TODO: Update this for non-static musl
509510 if not musl :
510511 bi ["core" ]["shared_lib" ] = "install/lib/libpython%s%s.so.1.0" % (
511512 version ,
@@ -834,6 +835,7 @@ def build_cpython(
834835 crt_features = []
835836
836837 if host_platform == "linux64" :
838+ # TODO: Update the musl target triple to reflect it is dynamic
837839 if "musl" in target_triple :
838840 crt_features .append ("static" )
839841 else :
@@ -874,6 +876,7 @@ def build_cpython(
874876 "python_stdlib_test_packages" : sorted (STDLIB_TEST_PACKAGES ),
875877 "python_symbol_visibility" : python_symbol_visibility ,
876878 "python_extension_module_loading" : extension_module_loading ,
879+ # TODO: Update this for dynamic musl
877880 "libpython_link_mode" : "static" if "musl" in target_triple else "shared" ,
878881 "crt_features" : crt_features ,
879882 "run_tests" : "build/run_tests.py" ,
0 commit comments