Created
June 15, 2025 11:06
-
-
Save xDShot/5401e95935fc5abfa1a7fbba883b9605 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
export PREFIX=${HOME}/cctools | |
export PATH="/usr/lib/ccache/bin:$PATH" | |
export TAPI_VERSION=1600.0.11.8 | |
#wget -O libtapi.tar.gz https://github.com/tpoechtrager/apple-libtapi/archive/refs/heads/${TAPI_VERSION}.tar.gz | |
rm -r apple-libtapi-${TAPI_VERSION} | |
tar xf libtapi.tar.gz | |
mkdir -p apple-libtapi-${TAPI_VERSION}/build | |
pushd apple-libtapi-${TAPI_VERSION}/build | |
TAPI_INCLUDE_FIX="-I $PWD/../src/llvm/projects/clang/include " | |
TAPI_INCLUDE_FIX+="-I $PWD/projects/clang/include " | |
# -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ | |
cmake ../src/llvm \ | |
-DCMAKE_CXX_FLAGS="${TAPI_INCLUDE_FIX}" \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_INSTALL_PREFIX=${PREFIX} \ | |
-DTAPI_REPOSITORY_STRING=$TAPI_VERSION \ | |
-DTAPI_FULL_VERSION="${TAPI_VERSION}" \ | |
-DLLVM_ENABLE_PROJECTS="tapi;clang" \ | |
-DTAPI_INCLUDE_TESTS=OFF \ | |
-DLLVM_INCLUDE_TESTS=OFF | |
make -j$(nproc) clangBasic vt_gen | |
make -j$(nproc) libtapi | |
make -j$(nproc) install-libtapi install-tapi-headers | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment