Skip to content

Commit 588dcc8

Browse files
committed
Ensure $(COMPAT_LEVEL) evaluated lazily
1 parent 933e883 commit 588dcc8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ COMPILER-$(COMPAT_VERSION):
150150
test_ver = $(shell if [ $(COMPAT_VERSION) -ge $(1) ] ; then echo ge ; fi)
151151

152152
# This list must be in order
153-
COMPAT_LEVEL := \
154-
$(strip $(if $(call test_ver,40100),401) \
155-
$(if $(call test_ver,40200),402) \
156-
$(if $(call test_ver,40300),403) \
157-
$(if $(call test_ver,40500),405) \
158-
$(if $(call test_ver,40600),406) \
159-
$(if $(call test_ver,40700),407))
153+
COMPAT_LEVEL = $(eval COMPAT_LEVEL := \
154+
$$(strip $$(if $$(call test_ver,40100),401) \
155+
$$(if $$(call test_ver,40200),402) \
156+
$$(if $$(call test_ver,40300),403) \
157+
$$(if $$(call test_ver,40500),405) \
158+
$$(if $$(call test_ver,40600),406) \
159+
$$(if $$(call test_ver,40700),407)))$(COMPAT_LEVEL)
160160

161161
Compat.ml: Compat.ml.in COMPILER-$(COMPAT_VERSION)
162162
sed -e '$(if $(COMPAT_LEVEL),/^$(subst $(SPACE),@\|^,$(COMPAT_LEVEL))@/d;)s/^[0-9]*@//' $< > $@

0 commit comments

Comments
 (0)