Skip to content

Commit af5c725

Browse files
committed
8237879: make 4.3 breaks build
Reviewed-by: erikj, tbell
1 parent dfb3120 commit af5c725

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

make/common/MakeBase.gmk

+5-4
Original file line numberDiff line numberDiff line change
@@ -525,15 +525,16 @@ DependOnVariableFileName = \
525525
# Param 2 - (optional) name of file to store value in
526526
DependOnVariableHelper = \
527527
$(strip \
528-
$(eval -include $(call DependOnVariableFileName, $1, $2)) \
528+
$(eval $1_filename := $(call DependOnVariableFileName, $1, $2)) \
529+
$(if $(wildcard $($1_filename)), $(eval include $($1_filename))) \
529530
$(if $(call equals, $(strip $($1)), $(strip $($1_old))),,\
530-
$(call MakeDir, $(dir $(call DependOnVariableFileName, $1, $2))) \
531+
$(call MakeDir, $(dir $($1_filename))) \
531532
$(if $(findstring $(LOG_LEVEL), trace), \
532533
$(info NewVariable $1: >$(strip $($1))<) \
533534
$(info OldVariable $1: >$(strip $($1_old))<)) \
534535
$(call WriteFile, $1_old:=$(call DoubleDollar,$(call EscapeHash,$($1))), \
535-
$(call DependOnVariableFileName, $1, $2))) \
536-
$(call DependOnVariableFileName, $1, $2) \
536+
$($1_filename))) \
537+
$($1_filename) \
537538
)
538539

539540
# Main macro

0 commit comments

Comments
 (0)