Skip to content

Commit f6113c8

Browse files
authored
Merge pull request #3774 from mtzguido/dune
Revert "Makefile: only use dune --release on release builds"
2 parents 380aea3 + 4fee358 commit f6113c8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ $(FSTAR1_FULL_EXE): .bare1.src.touch .full1.src.touch .stage1.ml.touch $(MAYBEFO
170170

171171
$(FSTAR2_BARE_EXE): .bare2.src.touch .stage2.ml.touch $(MAYBEFORCE)
172172
$(call bold_msg, "BUILD", "STAGE 2 FSTARC-BARE")
173-
$(MAKE) -C stage2 fstarc-bare
173+
$(MAKE) -C stage2 fstarc-bare FSTAR_DUNE_RELEASE=1
174174
touch -c $@
175175
# ^ Note, even if we don't release fstar-bare itself,
176176
# it is still part of the build of the full fstar, so
@@ -191,7 +191,7 @@ $(FSTAR2_BARE_EXE): .bare2.src.touch .stage2.ml.touch $(MAYBEFORCE)
191191

192192
$(FSTAR2_FULL_EXE): .bare2.src.touch .full2.src.touch .stage2.ml.touch $(MAYBEFORCE)
193193
$(call bold_msg, "BUILD", "STAGE 2 FSTARC")
194-
$(MAKE) -C stage2 fstarc-full
194+
$(MAKE) -C stage2 fstarc-full FSTAR_DUNE_RELEASE=1
195195
touch -c $@
196196

197197
.alib2.src.touch: $(FSTAR2_FULL_EXE) .force
@@ -209,7 +209,7 @@ $(FSTAR2_FULL_EXE): .bare2.src.touch .full2.src.touch .stage2.ml.touch $(MAYBEFO
209209

210210
.alib2.touch: .alib2.src.touch .stage2.ml.touch $(MAYBEFORCE)
211211
$(call bold_msg, "BUILD", "STAGE 2 LIB")
212-
$(MAKE) -C stage2/ libapp
212+
$(MAKE) -C stage2/ libapp FSTAR_DUNE_RELEASE=1
213213
touch $@
214214

215215
.plib2.src.touch: $(FSTAR2_FULL_EXE) .alib2.src.touch .force
@@ -229,7 +229,7 @@ $(FSTAR2_FULL_EXE): .bare2.src.touch .full2.src.touch .stage2.ml.touch $(MAYBEFO
229229

230230
.plib2.touch: .plib2.src.touch .stage2.ml.touch $(MAYBEFORCE)
231231
$(call bold_msg, "BUILD", "STAGE 2 PLUGLIB")
232-
$(MAKE) -C stage2/ libplugin
232+
$(MAKE) -C stage2/ libplugin FSTAR_DUNE_RELEASE=1
233233
touch $@
234234

235235
# F# library, from stage 2.
@@ -298,7 +298,7 @@ endif
298298
.install-stage2.touch: export FSTAR_LINK_LIBDIRS=$(LINK_OK)
299299
.install-stage2.touch: .stage2.src.touch
300300
$(call bold_msg, "INSTALL", "STAGE 2")
301-
$(MAKE) -C stage2 install PREFIX=$(CURDIR)/stage2/out
301+
$(MAKE) -C stage2 install PREFIX=$(CURDIR)/stage2/out FSTAR_DUNE_RELEASE=1
302302
@# ^ pass PREFIX to make sure we don't get it from env
303303
touch $@
304304

@@ -326,14 +326,14 @@ install: export PREFIX?=/usr/local
326326
install: export FSTAR_LINK_LIBDIRS=0 # default is false, but set anyway
327327
install:
328328
$(call bold_msg, "INSTALL", "STAGE 2")
329-
$(MAKE) -C stage2 install
329+
$(MAKE) -C stage2 install FSTAR_DUNE_RELEASE=1
330330

331331
__do-install-stage1:
332332
$(call bold_msg, "INSTALL", "STAGE 1")
333333
$(MAKE) -C stage1 install
334334
__do-install-stage2:
335335
$(call bold_msg, "INSTALL", "STAGE 2")
336-
$(MAKE) -C stage2 install
336+
$(MAKE) -C stage2 install FSTAR_DUNE_RELEASE=1
337337

338338
__do-archive: .force
339339
rm -rf $(PKGTMP)

mk/stage.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ FSTAR_DUNE_OPTIONS += --display=quiet
77
endif
88

99
FSTAR_DUNE_BUILD_OPTIONS := $(FSTAR_DUNE_OPTIONS)
10-
ifeq ($(FSTAR_RELEASE),1)
10+
ifeq ($(FSTAR_DUNE_RELEASE),1)
1111
FSTAR_DUNE_BUILD_OPTIONS += --release
1212
endif
1313

0 commit comments

Comments
 (0)