Remove extension definitions to prevent re-compilation of the entire system on commit #15955
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.
The extensions add an
EXT_VERSION_[XXX]
definition (e.g.EXT_VERSION_PARQUET
) - which defaults to the current git hash. These definitions are not removed afterwards, leading to subsequent compilation units to all have this definition, and stacking them up as extensions get built, e.g.:autocomplete
->-DEXT_VERSION_AUTOCOMPLETE=\"5001ce5bc7\"
icu
->-DEXT_VERSION_AUTOCOMPLETE=\"5001ce5bc7\" -DEXT_VERSION_ICU=\"5001ce5bc7\"
etc...
This is not really a problem, but these definitions change when a commit is made, leading to unnecessary recompilation. As these definitions pollute also the compilation of the main source tree this leads to recompiling of the entire system upon commit. By removing the definitions we make it so that we "only" recompile the extensions on commit instead.