Skip to content

Commit e256fc7

Browse files
committed
opam: build with gmake on mac
The Makefile prohibits the default make found on MacOS, so `opam install` won't work by default, unless the user specifies to use gmake by eg setting opam's make env var. It seems reasonable to use gmake by default on MacOS. I added similar logic to karamel a few months ago.
1 parent 6e5c852 commit e256fc7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pulse.opam

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ depends: [
88
"ocaml"
99
"fstar" {>= "2023.04.15~dev"}
1010
]
11+
# require modern GNU make (brew package 'make') on mac
12+
depexts: ["coreutils" "make"] {os = "macos" & os-distribution = "homebrew"}
1113
build: [
14+
# Makefile requires modern make - build with gmake on mac
15+
["gmake" "-j" jobs "ADMIT=1"] { os = "macos" & make = "make" }
1216
[make "-j" jobs "ADMIT=1"]
1317
]
1418
install: [
19+
["gmake" "PREFIX=%{prefix}%" "install"] { os = "macos" & make = "make" }
1520
[make "PREFIX=%{prefix}%" "install"]
1621
]
1722
dev-repo: "git://github.com/FStarLang/pulse"

0 commit comments

Comments
 (0)