Skip to content

build/feature.jam review#547

Closed
paolopas wants to merge 2 commits intobfgroup:mainfrom
paolopas:feat-1
Closed

build/feature.jam review#547
paolopas wants to merge 2 commits intobfgroup:mainfrom
paolopas:feat-1

Conversation

@paolopas
Copy link
Contributor

@paolopas paolopas commented Feb 8, 2026

  • fixed various comments about subfeatures values
  • fixed a couple of conditions in validate-value-string rule: the one on line 469 caused inefficiencies due to non-optimized (i.e., always performed) validations for non-free feature values; the condition on line 476, besides always being true, is also logically incorrect; ultimately, it only obfuscates the code[1];
  • fixed expand rule to perform full expansion even in the case of a composed feature that contains subfeatures[2]
  • compress-subproperties rule cleanup, removed unused variables (all-subs and matched-subs)
  • added testing of complete expansion by expand rule in __test__ rule

[1]

Since $($(feature).subfeatures) contains the name of the subfeature (e.g., gcc:version) and compares it to a value

$(value-string) in $($(feature).subfeatures)

It cannot be true, while the first part of the condition

! $(value-string) in $($(feature).values)

is implied by the previous condition (once updated).

[2]

Since subfeatures were expanded first and then composites, previously the subfeatures resulting from the last expansion were not further expanded. Furthermore, the change ensures that expand-composites always occurs as the last step, since all checks are performed by this rule.

* fixed various comments about subfeatures values
* fixed a couple of conditions in validate-value-string rule,
  the one on line 469 caused inefficiencies due to non-optimized
  (i.e., always performed) validations for non-free feature values;
  the condition on line 476, besides always being true, is also
  logically incorrect; ultimately, it only obfuscates the code;
* fixed expand rule to perform full expansion even in the case
  of a composed feature that contains subfeatures
* compress-subproperties rule cleanup, removed unused variables
  (all-subs and matched-subs)
* added testing of complete expansion by expand rule in __test__ rule
@grafikrobot grafikrobot moved this to 👀 In review in BFG Tasks Feb 13, 2026
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in BFG Tasks Feb 14, 2026
@paolopas paolopas deleted the feat-1 branch February 14, 2026 05:50
@paolopas paolopas restored the feat-1 branch February 23, 2026 07:44
@paolopas
Copy link
Contributor Author

@grafikrobot I don't want to bother you during your holidays, but what happened to these changes?

@paolopas paolopas deleted the feat-1 branch February 23, 2026 08:01
@paolopas
Copy link
Contributor Author

sorry I found them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

1 participant