[WIP] allow selection of the compile/link toolchain for python_dist() #6328
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WIP because there is absolutely no testing yet
Problem
There is currently no way for a user to affect which compiler or linker is run at any point in which our native toolchain is invoked. This adds that option for python_dist() targets.
Also, all the random stuff we add to the environment is just confusing distutils and making it produce compile errors in lots of internal usages of
python_dist()
-- until #6273 is merged, leaving thesetup.py
invocation environment mostly untouched allows these to succeed.(explain the context of the problem and why you're making this change. include
references to all relevant github issues.)
Solution
(describe the modifications you've made.)
Result
(describe how your changes affect the end-user behavior of the system. this section is
optional, and should generally be summarized in the title of the pull request.)