boost: don't modify user-config.jam in-source #25826
Open
+25
−31
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.
Summary
Changes to recipe: boost/[*]
Motivation
user-config.jam
, which contains the necessary build info about the toolchain and external libs, is currently being modified in-place at<source_folder>/tools/build/user-config.jam
. This is a pretty bad idea given that the recipe is usingno_copy_source=True
and that the location of theuser-config.jam
file is provided via a CLI argument anyway.Details
This PR moves the
user-config.jam
generation frombuild()
togenerate()
and stores the file inself.generators_folder
.A few other minor cosmetic changes to the recipe as well.
/cc @AbrilRBS, since you were recently adding warnings for source modifications with
no_copy_source=True
.