Skip to content

Commit 0ad2397

Browse files
committed
Try a different strategy
1 parent f22c5cb commit 0ad2397

File tree

1 file changed

+9
-5
lines changed
  • packages/z3/z3.4.15.1

1 file changed

+9
-5
lines changed

packages/z3/z3.4.15.1/opam

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ patches: [
1313
"gccstd-2a.patch" { (os-family = "opensuse" | os-family = "suse") | (os-distribution = "ubuntu" & os-version <= "20.04") }
1414
]
1515
build: [
16-
[ "export" "PATH=/usr/local/opt/llvm/bin:$PATH"] {os-distribution = "homebrew"}
17-
[ "export" "LDFLAGS=-L/usr/local/opt/llvm/lib"] {os-distribution = "homebrew"}
18-
[ "export" "CPPFLAGS=-I/usr/local/opt/llvm/include"] {os-distribution = "homebrew"}
19-
[ "python3" "scripts/mk_make.py" "--ml" ]
20-
[ make "-C" "build" "-j" jobs ]
16+
[ "python3" "scripts/mk_make.py" "--ml" ] {os-distribution <> "homebrew"}
17+
[ make "-C" "build" "-j" jobs ] {os-distribution <> "homebrew"}
18+
[ "sh" "-c" """#!/bin/sh
19+
PATH=/usr/local/opt/llvm/bin:$PATH
20+
LDFLAGS=\"-L/usr/local/opt/llvm/lib $LDFLAGS\"
21+
CPPFLAGS=\"-I/usr/local/opt/llvm/include $CPPFLAGS\"
22+
python3 scripts/mk_make.py --ml
23+
make -C build
24+
"""] {os-distribution = "homebrew"}
2125
]
2226

2327
install: [

0 commit comments

Comments
 (0)