Skip to content

Commit

Permalink
src package: restore parallelism in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mtzguido committed Jan 17, 2025
1 parent 74c6a89 commit b9000bb
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions mk/src_package_mk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@
#
# I think this is probably a dune bug.

# NOTE: (Guido 2025-01-13) For whatever undebuggable reason, Cygwin make
# (version 4.4.1-1 at least) to (sometimes) freeze , and halt the build.
# Not running this makefile (and sub-makes) in parallel *seems* to help,
# though obviously makes this significantly slower in Windows.
ifeq ($(OS),Windows_NT)
.NOTPARALLEL:
MAYBEJ1=-j1
else
MAYBEJ1=
endif

include mk/common.mk

FSTAR_DUNE_OPTIONS += --no-print-directory
Expand Down Expand Up @@ -67,7 +56,7 @@ check_lib: install_bin
CODEGEN=none \
OUTPUT_DIR=none \
FSTAR_ROOT=$(CURDIR) \
$(MAKE) -f mk/lib.mk verify $(MAYBEJ1)
$(MAKE) -f mk/lib.mk verify

install_lib: check_lib
$(call msg, "INSTALL LIB")
Expand All @@ -88,7 +77,7 @@ check_fstarc: install_bin
TAG=fstarc \
FSTAR_LIB=$(call cygpath,ulib) \
FSTAR_ROOT=$(CURDIR) \
$(MAKE) -f mk/fstar-12.mk verify $(MAYBEJ1)
$(MAKE) -f mk/fstar-12.mk verify
$(call msg, "DONE CHECK FSTARC")

install_fstarc: check_fstarc
Expand Down

0 comments on commit b9000bb

Please sign in to comment.