Add setup target to builder script
This commit is contained in:
parent
90b39435b6
commit
b442d5e83c
17
README.org
17
README.org
|
@ -1,16 +1,11 @@
|
||||||
* Serene lang
|
* Serene lang
|
||||||
** Setup development environment
|
** Setup development environment
|
||||||
*** Emacs
|
Setup the githook and install dependencies using the following commands:
|
||||||
Install the dependencies including ~clangd~ and just run ~lsp~
|
|
||||||
|
|
||||||
**** Requirements on the Rust side
|
#+BEGIN_EXAMPLE bash
|
||||||
To setup the dev envrionment you need to have *Clippy* and *RLS* installed. Run the
|
./builder deps
|
||||||
following commands to install them:
|
./builder setup
|
||||||
|
|
||||||
#+BEGIN_SRC bash
|
|
||||||
rustup component add rls --toolchain stable-x86_64-unknown-linux-gnu
|
|
||||||
rustup component add --toolchain stable-x86_64-unknown-linux-gnu clippy
|
|
||||||
rustup component add rustfmt
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Use your desired toolchain instead of *stable-x86_64-unknown-linux-gnu*
|
*** Emacs
|
||||||
|
Install the dependencies including ~clangd~ and just run ~lsp~
|
||||||
|
|
5
builder
5
builder
|
@ -72,6 +72,11 @@ case "$command" in
|
||||||
clang-tools-10 valgrind cmake ninja-build \
|
clang-tools-10 valgrind cmake ninja-build \
|
||||||
doxygen
|
doxygen
|
||||||
;;
|
;;
|
||||||
|
"setup")
|
||||||
|
pushd ./scripts
|
||||||
|
./scripts/git-pre-commit-format install
|
||||||
|
popd
|
||||||
|
;;
|
||||||
"build")
|
"build")
|
||||||
clean
|
clean
|
||||||
mkdir -p $BUILD_DIR
|
mkdir -p $BUILD_DIR
|
||||||
|
|
Loading…
Reference in New Issue