Skip to content

Commit 49424ce

Browse files
committed
check opam switch in makefile
1 parent 4442518 commit 49424ce

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ ocaml_version:
6969
ocaml_word_size:
7070
@if ! ocamlopt -config | grep "word_size:" | grep $(WORD_SIZE); then echo "invalid machine word size, expected $(WORD_SIZE)" ; exit 1; fi
7171

72-
ocaml_checks: ocaml_version ocaml_word_size
72+
check_opam_switch:
73+
ifneq ($(DISABLE_CHECK_OPAM_SWITCH), true)
74+
check_opam_switch opam.export
75+
endif
76+
77+
ocaml_checks: ocaml_version ocaml_word_size check_opam_switch
7378

7479
libp2p_helper:
7580
make -C src/app/libp2p_helper

nix/ocaml.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ let
133133
GO_CAPNP_STD = "${pkgs.go-capnproto2.src}/std";
134134

135135
MARLIN_PLONK_STUBS = "${pkgs.marlin_plonk_bindings_stubs}/lib";
136+
DISABLE_CHECK_OPAM_SWITCH = "true";
136137
configurePhase = ''
137138
export MINA_ROOT="$PWD"
138139
patchShebangs .

0 commit comments

Comments
 (0)