build/jam/BuildFeatureRules: Make EnableBuildFeatures actually work.

It was trying to use $(feature:U) outside of the loop where it is
actually set. Thanks to PulkoMandy for spotting the problem.

(How did this not break tons of stuff?)
This commit is contained in:
Augustin Cavalier 2017-11-24 15:12:43 +01:00
parent 7bee81a5c2
commit a9916f9b1a

View File

@ -155,11 +155,11 @@ rule EnableBuildFeatures features : specification
features = [ FQualifiedBuildFeatureName $(features) ] ;
if ! $(HAIKU_BUILD_FEATURE_$(feature:U)_ENABLED)
&& ( ! $(specification)
|| [ FMatchesBuildFeatures $(specification) ] ) {
local feature ;
for feature in $(features) {
local feature ;
for feature in $(features) {
if ! $(HAIKU_BUILD_FEATURE_$(feature:U)_ENABLED)
&& ( ! $(specification)
|| [ FMatchesBuildFeatures $(specification) ] ) {
HAIKU_BUILD_FEATURES += $(feature) ;
HAIKU_BUILD_FEATURE_$(feature:U)_ENABLED = 1 ;
}