Skip to content

Commit 23108cd

Browse files
committed
just build now makes cstar available in $PATH.
1 parent 0d9faca commit 23108cd

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

dune-project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
(lang dune 2.9)
2+
(name cstar)

justfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,13 @@ trace-exec *args:
148148

149149
# run dune, but through mold
150150
dune *args:
151-
dune {{args}}
151+
esy build dune {{args}}
152+
153+
cstar-path:
154+
fd --type executable '^cstar\.exe$' _esy
152155

153156
build *args: (dune "build" "./src/cstar.exe" args)
157+
ln --symbolic --force "../$(just cstar-path)" ./bin/cstar
154158

155159
alias b := build
156160

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
2-
"esy": { "build": "dune build" },
2+
"esy": {
3+
"build": "dune build -p cstar",
4+
"release": {
5+
"releasedBinaries": [
6+
"cstar"
7+
]
8+
}
9+
},
310
"dependencies": {
411
"@opam/dune": "2.9.1",
512
"@opam/merlin": "4.3.1-412",

src/dune

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
(pps ppx_deriving.std)
88
; (staged_pps ppx_import ppx_deriving.show)
99
)
10-
(name cstar))
10+
(name cstar)
11+
(public_name cstar))

0 commit comments

Comments
 (0)