mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-20 05:11:46 +03:00
31 lines
478 B
Bash
31 lines
478 B
Bash
|
source $setup
|
||
|
|
||
|
tar -xf $llvm_src
|
||
|
mv llvm-* llvm
|
||
|
|
||
|
tar -xf $lld_src
|
||
|
mv lld-* lld
|
||
|
mv lld llvm/tools/
|
||
|
|
||
|
tar -xf $src
|
||
|
mv cfe-* clang
|
||
|
cd clang
|
||
|
for patch in $patches; do
|
||
|
echo applying patch $patch
|
||
|
patch -p1 -i $patch
|
||
|
done
|
||
|
cd ..
|
||
|
mv clang llvm/projects/
|
||
|
|
||
|
mkdir build
|
||
|
cd build
|
||
|
|
||
|
cmake ../llvm -GNinja -DDEFAULT_SYSROOT=$out -DCMAKE_INSTALL_PREFIX=$out $cmake_flags
|
||
|
|
||
|
ninja
|
||
|
|
||
|
ninja install
|
||
|
|
||
|
# clang-tblgen is supposed to be an internal tool, but tapi needs it
|
||
|
cp bin/clang-tblgen $out/bin
|