mirror of
https://github.com/ziglang/zig.git
synced 2024-11-22 04:10:13 +00:00
Updated How to build LLVM, libclang, and liblld from source (markdown)
parent
967c1b8c68
commit
49f13d8c86
@ -4,7 +4,7 @@ Typically I use the path `~/local` since it does not require root to install, an
|
||||
$ cd llvm-4.0.0.src/
|
||||
$ mkdir build
|
||||
$ cd build
|
||||
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local -DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=on
|
||||
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local -DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
$ make install
|
||||
```
|
||||
|
||||
@ -12,7 +12,7 @@ $ make install
|
||||
$ cd cfe-4.0.0.src/
|
||||
$ mkdir build
|
||||
$ cd build
|
||||
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local -DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=on
|
||||
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local -DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
$ make install
|
||||
```
|
||||
|
||||
@ -20,7 +20,7 @@ $ make install
|
||||
$ cd lld-4.0.0.src/
|
||||
$ mkdir build
|
||||
$ cd build
|
||||
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local -DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=on
|
||||
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local -DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
$ make install
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user