mirror of
https://github.com/urbit/shrub.git
synced 2024-12-04 23:04:24 +03:00
edd57d380d
- Fixes the IPC bug - Fixes the terminfo bug - Moves the OSX SDK out of our nixcrpkgs fork. - Vendor nixcrpkgs instead of having it be a submodule.
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
|