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:
@@ -155,11 +155,11 @@ rule EnableBuildFeatures features : specification
|
|||||||
|
|
||||||
features = [ FQualifiedBuildFeatureName $(features) ] ;
|
features = [ FQualifiedBuildFeatureName $(features) ] ;
|
||||||
|
|
||||||
|
local feature ;
|
||||||
|
for feature in $(features) {
|
||||||
if ! $(HAIKU_BUILD_FEATURE_$(feature:U)_ENABLED)
|
if ! $(HAIKU_BUILD_FEATURE_$(feature:U)_ENABLED)
|
||||||
&& ( ! $(specification)
|
&& ( ! $(specification)
|
||||||
|| [ FMatchesBuildFeatures $(specification) ] ) {
|
|| [ FMatchesBuildFeatures $(specification) ] ) {
|
||||||
local feature ;
|
|
||||||
for feature in $(features) {
|
|
||||||
HAIKU_BUILD_FEATURES += $(feature) ;
|
HAIKU_BUILD_FEATURES += $(feature) ;
|
||||||
HAIKU_BUILD_FEATURE_$(feature:U)_ENABLED = 1 ;
|
HAIKU_BUILD_FEATURE_$(feature:U)_ENABLED = 1 ;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user