Skip to content

Commit 1b44c8a

Browse files
committed
make: rm -f binaries before cp, otherwise macOS kills, fixes #480
1 parent 80d6762 commit 1b44c8a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

make.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ rule() {
2121
;; nat*)
2222
eval $(opam config env)
2323
dune build $TARGET.exe &&
24+
rm -f goblint &&
2425
cp _build/default/$TARGET.exe goblint
25-
chmod +w goblint
2626
;; release)
2727
eval $(opam config env)
2828
dune build --profile release $TARGET.exe &&
29+
rm -f goblint &&
2930
cp _build/default/$TARGET.exe goblint
30-
chmod +w goblint
3131
# alternatives to .exe: .bc (bytecode), .bc.js (js_of_ocaml), see https://dune.readthedocs.io/en/stable/dune-files.html#executable
3232
;; js) # https://dune.readthedocs.io/en/stable/jsoo.html
3333
dune build $TARGET.bc.js &&
@@ -39,23 +39,23 @@ rule() {
3939
;; domaintest)
4040
eval $(opam config env)
4141
dune build src/maindomaintest.exe &&
42+
rm -f goblint.domaintest &&
4243
cp _build/default/src/maindomaintest.exe goblint.domaintest
43-
chmod +w goblint.domaintest
4444
;; privPrecCompare)
4545
eval $(opam config env)
4646
dune build src/privPrecCompare.exe &&
47+
rm -f privPrecCompare &&
4748
cp _build/default/src/privPrecCompare.exe privPrecCompare
48-
chmod +w privPrecCompare
4949
;; apronPrecCompare)
5050
eval $(opam config env)
5151
dune build src/apronPrecCompare.exe &&
52+
rm -f apronPrecCompare &&
5253
cp _build/default/src/apronPrecCompare.exe apronPrecCompare
53-
chmod +w apronPrecCompare
5454
;; byte)
5555
eval $(opam config env)
5656
dune build goblint.byte &&
57+
rm -f goblint.byte &&
5758
cp _build/default/goblint.byte goblint.byte
58-
chmod +w goblint.byte
5959
# ;; tag*)
6060
# otags -vi `find src/ -iregex [^.]*\.mli?`
6161

0 commit comments

Comments
 (0)