Fix build error for ocaml-lsp

This commit is contained in:
Ushitora Anqou
2022-03-15 22:48:56 +09:00
committed by mattn
parent d9a4a69b76
commit 51a60c1909

View File

@@ -12,13 +12,15 @@ rm -r lsp/test
OPAMROOT="$(pwd)/.opam"
export OPAMROOT
export OPAMYES=true
opam init -a -n
opam switch create . ocaml-base-compiler.4.13.0
eval "$(opam env)" 2>/dev/null
opam switch create . --with-test -y
opam exec --switch=. dune build
opam exec make install-test-deps
opam exec make all
rm -rf .git
cd "$DEFAULT_DIR"
ln -snf "./ocaml-lsp-files/_build/default/ocaml-lsp-server/src/main.exe" ocaml-lsp
ln -snf "./ocaml-lsp-files/_build/default/ocaml-lsp-server/bin/main.exe" ocaml-lsp
chmod +x ocaml-lsp