Skip to content

Commit 2eee00e

Browse files
authored
Update build instruction in README.md (#196)
1 parent 693075e commit 2eee00e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ Either install the LLVM packages on your system:
1616

1717
On macOS, use [pkgsrc](http://pkgsrc.joyent.com/install-on-osx/) and run the following commands:
1818
```sh
19-
~$ pkgin in llvm clang
19+
~$ pkgin in llvm clang ninja-build
2020
```
2121

2222
On CentOS, install the llvm-devel package:
2323
```sh
24-
~# dnf install llvm-devel clang
24+
~# dnf install llvm-devel clang ninja-build
2525
```
2626

2727
On Debian and derivatives, install the llvm-dev package via:
2828
```sh
29-
~# apt install llvm-dev clang
29+
~# apt install llvm-dev clang ninja-build
3030
```
3131

3232
Note: this project uses LLVM 17, so make sure that the package manager is installing it and not some other version. At the time of writing, Ubuntu installs version 14.
@@ -41,11 +41,11 @@ The first step is to compile LLVM on your machine
4141
```sh
4242
~$ git clone https://github.com/llvm/llvm-project.git
4343
~$ cd llvm-project
44-
llvm-project$ git checkout release/8.x
44+
llvm-project$ git checkout release/17.x
4545
llvm-project$ mkdir llvm/build
4646
llvm-project$ cd llvm/build
47-
build$ cmake ..
48-
build$ make
47+
build$ cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DLLVM_PARALLEL_LINK_JOBS=1
48+
build$ ninja
4949
```
5050
To run tests, you need to build `lli`.
5151

@@ -60,15 +60,15 @@ If you built LLVM yourself, put it in the same folder you built LLVM in:
6060
~$ cd llvm-project/llvm/projects
6161
projects$ git clone https://github.com/JuliaHubOSS/llvm-cbe
6262
projects$ cd ../build
63-
build$ cmake -S ..
64-
build$ make llvm-cbe
63+
build$ cmake -S .. -G "Ninja"
64+
build$ ninja bin/llvm-cbe
6565
```
6666
If you used your distribution's package, put it wherever you feel like:
6767
```sh
6868
~$ git clone https://github.com/JuliaHubOSS/llvm-cbe
6969
~$ cd llvm-cbe && mkdir build && cd build
70-
build$ cmake -S ..
71-
build$ make llvm-cbe
70+
build$ cmake -S .. -G "Ninja"
71+
build$ ninja bin/llvm-cbe
7272
```
7373
Step 3: Usage Examples
7474
======================

0 commit comments

Comments
 (0)