Skip to content

Commit

Permalink
Update Makefile and add some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fikovnik committed Sep 9, 2024
1 parent 3540570 commit 1e8cbe0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/rsh/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ R := $(R_HOME)/bin/R --slave --no-restore
LLVM_R := LD_PRELOAD=$(LLVM_LIB) $(R)

.PHONY: all
all: install
all: install test benchmark

.PHONY: build
build:
Expand Down
18 changes: 18 additions & 0 deletions client/rsh/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Building

```sh
$ make dependencies
$ make
```

For development run:

```sh
$ make setup
```

which will create the `compile_commands.json` file for clangd.

You can pass `R_HOME=...` to the make command to specify the R installation to use.
It is not a bad idea to have a copy of the `../external/R` compiled for debugging.
To do that you can use the `../../tools/build-gnur.sh` script with `-d` option.

0 comments on commit 1e8cbe0

Please sign in to comment.