Skip to content

Commit 522d8ed

Browse files
committed
Make it work on homebrew/arm64
1 parent b737d2a commit 522d8ed

File tree

1 file changed

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

1 file changed

+9
-1
lines changed

packages/z3/z3.4.15.1/opam

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@ build: [
2222
export PATH LDFLAGS CPPFLAGS
2323
python3 scripts/mk_make.py --ml
2424
make -C build
25-
"""] {os-distribution = "homebrew"}
25+
"""] {os-distribution = "homebrew" & arch = "amd64"}
26+
[ "sh" "-c" """#!/bin/sh
27+
PATH=/opt/homebrew/opt/llvm/bin:$PATH
28+
LDFLAGS="-L/opt/homebrew/opt/llvm/lib $LDFLAGS"
29+
CPPFLAGS="-I/opt/homebrew/opt/llvm/include $CPPFLAGS"
30+
export PATH LDFLAGS CPPFLAGS
31+
python3 scripts/mk_make.py --ml
32+
make -C build
33+
"""] {os-distribution = "homebrew" & arch = "arm64"}
2634
]
2735

2836
install: [

0 commit comments

Comments
 (0)