bpo-45881: Use CC from env first for cross building (GH-29752) by tiran · Pull Request #29752 · python/cpython

@tiran

``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 <christian@python.org>

brettcannon

@tiran tiran changed the title bpo-45881: Use CC from env first for cross building bpo-45881: Use CC from env first for cross building (GH-29752)

Nov 24, 2021

@tiran tiran deleted the bpo-45881-cross-cc branch

November 24, 2021 17:53

tiran added a commit to tiran/cpython that referenced this pull request

Nov 24, 2021
…29752).

(cherry picked from commit b30bf45)

Co-authored-by: Christian Heimes <christian@python.org>

tiran added a commit to tiran/cpython that referenced this pull request

Nov 24, 2021
…honGH-29752).

(cherry picked from commit b30bf45)

Co-authored-by: Christian Heimes <christian@python.org>.
(cherry picked from commit e6b0c8a)

Co-authored-by: Christian Heimes <christian@python.org>

@tiran tiran mentioned this pull request

Nov 25, 2021

tiran added a commit that referenced this pull request

Nov 25, 2021
…H-29754)

Co-authored-by: Christian Heimes <christian@python.org>.
Co-authored-by: Christian Heimes <christian@python.org>

tiran added a commit that referenced this pull request

Nov 27, 2021
GH-29753)

Co-authored-by: Christian Heimes <christian@python.org>

remykarem pushed a commit to remykarem/cpython that referenced this pull request

Dec 7, 2021

@tiran tiran mentioned this pull request

Apr 10, 2022