Skip to content

Commit

Permalink
copy dist folder and promote executable with dune
Browse files Browse the repository at this point in the history
  • Loading branch information
stilscher committed Jan 30, 2024
1 parent ed75229 commit 2a543f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/user-guide/inspecting.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ For the initial setup:
To build GobView (also for development):

1. Run `make view` in the analyzer directory to build the web UI
2. The executable `goblint-http` takes the analyzer directory and additional Goblint configurations such as the files to be analyzed as parameters. Run it e.g. with the following command:\
`./goblint-http tests/regression/00-sanity/01-assert.c`
2. The executable `goblint-http.exe` takes the analyzer directory and additional Goblint configurations such as the files to be analyzed as parameters. Run it e.g. with the following command:\
`./goblint-http.exe tests/regression/00-sanity/01-assert.c`

3. Visit <http://localhost:8080>
7 changes: 1 addition & 6 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ rule() {
cp _build/default/$TARGET.exe goblint
;; view)
eval $(opam config env)
dune build gobview &&
rm -f goblint-http &&
cp ./_build/default/gobview/goblint-http-server/goblint_http.exe goblint-http &&
rm -rf gobview/_dist &&
mkdir gobview/_dist
cp ./_build/default/gobview/dist/* gobview/_dist/
dune build gobview
# alternatives to .exe: .bc (bytecode), .bc.js (js_of_ocaml), see https://dune.readthedocs.io/en/stable/dune-files.html#executable
;; js) # https://dune.readthedocs.io/en/stable/jsoo.html
dune build $TARGET.bc.js &&
Expand Down

0 comments on commit 2a543f5

Please sign in to comment.