Skip to content

Commit 334d806

Browse files
authored
Statically link ocamlformat-rpc (#4)
Fixes a bug where only the ocamlformat binary was being statically linked, not the ocamlformat-rpc binary in the same package. Signed-off-by: Stephen Sherratt <[email protected]>
1 parent a8dbec9 commit 334d806

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

flakes/ocamlformat/static.diff

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
diff --git a/bin/ocamlformat-rpc/dune b/bin/ocamlformat-rpc/dune
2+
index f1bda4fa..11e8e369 100644
3+
--- a/bin/ocamlformat-rpc/dune
4+
+++ b/bin/ocamlformat-rpc/dune
5+
@@ -13,6 +13,7 @@
6+
(name main)
7+
(public_name ocamlformat-rpc)
8+
(package ocamlformat)
9+
+ (link_flags (:standard -cclib -static))
10+
(flags
11+
(:standard -open Ocamlformat_stdlib))
12+
(instrumentation
113
diff --git a/bin/ocamlformat/dune b/bin/ocamlformat/dune
2-
index 04288971..cf5e13c5 100644
14+
index 86de53ed..7e0eb858 100644
315
--- a/bin/ocamlformat/dune
416
+++ b/bin/ocamlformat/dune
517
@@ -14,6 +14,7 @@

0 commit comments

Comments
 (0)