Skip to content

Commit 0fb5b2f

Browse files
committed
Makefile: update for new stage0
1 parent 56e84cc commit 0fb5b2f

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

.github/workflows/build-windows.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ jobs:
7878
# export FSTAR_TAG=-$KERNEL-$ARCH
7979
# make -kj$(nproc) 0 V=1
8080
# echo -------------------------------------------------
81-
# ./stage0/bin/fstar.exe --version
82-
# ./stage0/bin/fstar.exe --locate
83-
# ./stage0/bin/fstar.exe --locate_lib
84-
# ./stage0/bin/fstar.exe --locate_ocaml
85-
# ./stage0/bin/fstar.exe --include src --debug yes || true
81+
# ./stage0/out/bin/fstar.exe --version
82+
# ./stage0/out/bin/fstar.exe --locate
83+
# ./stage0/out/bin/fstar.exe --locate_lib
84+
# ./stage0/out/bin/fstar.exe --locate_ocaml
85+
# ./stage0/out/bin/fstar.exe --include src --debug yes || true
8686
# echo -------------------------------------------------
8787
# make -kj$(nproc) package V=1
8888

Makefile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@ all-packages: package-1 package-2 package-src-1 package-src-2
1818
# to a local build of stage0, to avoid recompiling it every time.
1919
ifneq ($(FSTAR_EXTERNAL_STAGE0),)
2020
FSTAR0_EXE := $(abspath $(FSTAR_EXTERNAL_STAGE0))
21-
_ != mkdir -p stage0/bin
22-
_ != ln -Trsf $(FSTAR0_EXE) stage0/bin/fstar.exe
21+
_ != mkdir -p stage0/out/bin
22+
_ != ln -Trsf $(FSTAR0_EXE) stage0/out/bin/fstar.exe
2323
# ^ Setting this link allows VS code to work seamlessly.
2424
endif
2525

26-
# When stage0 is bumped, use this:
27-
#FSTAR0_EXE ?= stage0/out/bin/fstar.exe
28-
FSTAR0_EXE ?= stage0/bin/fstar.exe
26+
FSTAR0_EXE ?= stage0/out/bin/fstar.exe
2927

3028
# This is hardcoding some dune paths, with internal (non-public) names.
3129
# This is motivated by dune installing packages as a unit, so I could not
@@ -72,11 +70,8 @@ build: 2
7270
0 $(FSTAR0_EXE):
7371
$(call bold_msg, "STAGE 0")
7472
mkdir -p stage0/ulib/.cache # prevent warnings
75-
$(MAKE) -C stage0 fstar
73+
$(MAKE) -C stage0 install_bin # build: only fstar.exe
7674
$(MAKE) -C stage0 trim # We don't need OCaml build files.
77-
# When the stage is bumped, use this:
78-
# $(MAKE) -C stage0 build # build: only fstar.exe
79-
# $(MAKE) -C stage0 trim # We don't need OCaml build files.
8075

8176
.bare1.src.touch: $(FSTAR0_EXE) .force
8277
$(call bold_msg, "EXTRACT", "STAGE 1 FSTARC-BARE")

src/FStarCompiler.fst.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"fstar_exe": "../stage0/bin/fstar.exe",
2+
"fstar_exe": "../stage0/out/bin/fstar.exe",
33
"options": [
44
"--MLish",
55
"--MLish_effect", "FStarC.Effect",

0 commit comments

Comments
 (0)