Skip to content

Commit a69a52a

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 a69a52a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

pulse.opam

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@ 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: [
12-
[make "-j" jobs "ADMIT=1"]
14+
# Makefile requires modern make - build with gmake on mac
15+
["gmake" "-j" jobs "ADMIT=1"] { os = "macos" }
16+
[make "-j" jobs "ADMIT=1"] { os != "macos" }
1317
]
1418
install: [
15-
[make "PREFIX=%{prefix}%" "install"]
19+
["gmake" "PREFIX=%{prefix}%" "install"] { os = "macos" }
20+
[make "PREFIX=%{prefix}%" "install"] { os != "macos" }
1621
]
1722
dev-repo: "git://github.com/FStarLang/pulse"
1823
bug-reports: "https://github.com/FStarLang/pulse/issues"

0 commit comments

Comments
 (0)