bpo-45881: Use CC from env first for cross building (GH-29752)#29752
bpo-45881: Use CC from env first for cross building (GH-29752)#29752tiran merged 1 commit intopython:mainfrom
Conversation
``setup.py`` now uses ``CC`` from environment first to discover multiarch and cross compile paths. The sysconfig variable contains the value for the build host. The patch also re-arranges ``set_compiler_executables``, ``configure_compiler``, and ``init_inc_lib_dirs`` to make the code easier to follow. Signed-off-by: Christian Heimes <[email protected]>
acc610b to
0719057
Compare
|
Thanks @tiran for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
|
Sorry, @tiran, I could not cleanly backport this to |
|
Sorry @tiran, I had trouble checking out the |
…29752). (cherry picked from commit b30bf45) Co-authored-by: Christian Heimes <[email protected]>
…honGH-29752). (cherry picked from commit b30bf45) Co-authored-by: Christian Heimes <[email protected]>. (cherry picked from commit e6b0c8a) Co-authored-by: Christian Heimes <[email protected]>
|
GH-29754 is a backport of this pull request to the 3.9 branch. |
…H-29754) Co-authored-by: Christian Heimes <[email protected]>. Co-authored-by: Christian Heimes <[email protected]>
GH-29753) Co-authored-by: Christian Heimes <[email protected]>
|
setup.pynow usesCCfrom environment first to discover multiarchand cross compile paths. The sysconfig variable contains the value for
the build host.
The patch also re-arranges
set_compiler_executables,configure_compiler, andinit_inc_lib_dirsto make the codeeasier to follow.
Signed-off-by: Christian Heimes [email protected]
https://bugs.python.org/issue45881