Skip to content

Commit

Permalink
Enable building clang and llvm libc
Browse files Browse the repository at this point in the history
  • Loading branch information
uwueviee committed Aug 29, 2021
1 parent 9fd244e commit 1561a88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ You'll also need the sources for:
* openssl 1.1.1l
* cmake 3.21.1
* llvm 12.0.1
* clang 12.0.1
* compiler-rt 12.0.1
* libcxx 12.0.1
* libcxxabi 12.0.1

To allow the scripts to find the sources, please ensure the extracted sources are in a folder with only it's name as the folder name. (Example: gcc 10.2.0 would be in /sources/gcc)

Expand Down
9 changes: 5 additions & 4 deletions clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ cd $3
mkdir -v build
cd build

cmake -DCMAKE_INSTALL_PREFIX=$1/tools \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_TARGETS_TO_BUILD="host" \
cmake -DCMAKE_INSTALL_PREFIX=$1/tools \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_TARGETS_TO_BUILD="host" \
-DLLVM_ENABLE_PROJECTS="clang;compiler-rt;libcxx;libcxxabi" \
-Wno-dev ..

make $4
make install
make install

0 comments on commit 1561a88

Please sign in to comment.