Skip to content

Commit 5d44f02

Browse files
committed
Makefile: allow skipping krmllib build when LOWSTAR=false
When using newer F*'s without Low* support, the default makefile rule will fail since it tries to build krmllib. This patch allows to set LOWSTAR=false in the environment to avoid it, but still get a working local install (just without krmllib checked files). (This patch is already in the fstar2 branch that the F* submodule tracks.)
1 parent 7d47749 commit 5d44f02

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ minimal: lib/Version.ml
1919
dune build
2020
ln -sf _build/default/src/Karamel.exe krml
2121

22+
ifneq ($(LOWSTAR),false)
2223
krmllib: minimal
2324
@# Make sure krml can find its relevant directories, since
2425
@# it is not yet installed with them.
@@ -27,6 +28,9 @@ krmllib: minimal
2728
KRML_INCLUDEDIR=$(CURDIR)/include \
2829
KRML_MISCDIR=$(CURDIR)/misc \
2930
$(MAKE) -C krmllib
31+
else
32+
krmllib: minimal
33+
endif
3034

3135
# A full local install. out/ will contain essentially the same directory
3236
# as an OPAM install or binary package.

0 commit comments

Comments
 (0)