Skip to content

Commit 6b7fb36

Browse files
committed
unix: add -v to compiler and linker flags
I'm trying to debug why Python 3.8 builds are using the 11.0 SDK. I think it has something to do with the default sysroot and search paths baked into Clang. Let's build in verbose mode so the search paths are printed and we can confirm our hypothesis.
1 parent a75bd2a commit 6b7fb36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cpython-unix/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ def add_target_env(env, build_platform, target_triple, build_env):
169169
extra_host_cflags.extend(["-isysroot", host_sdk_path])
170170
extra_host_ldflags.extend(["-isysroot", host_sdk_path])
171171

172+
extra_target_cflags.append("-v")
173+
extra_target_ldflags.append("-v")
174+
172175
env["EXTRA_HOST_CFLAGS"] = " ".join(extra_host_cflags)
173176
env["EXTRA_HOST_LDFLAGS"] = " ".join(extra_host_ldflags)
174177
env["EXTRA_TARGET_CFLAGS"] = " ".join(extra_target_cflags)

0 commit comments

Comments
 (0)