Last active
June 13, 2026 03:56
-
-
Save amirrajan/1764beb94cb5a25ebb8b209b43a96058 to your computer and use it in GitHub Desktop.
Build LLVM MacOS
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
| xcodebuild -version | |
| brew install cmake | |
| brew install ninja | |
| rm -rf ./llvm-project | |
| git clone --depth 1 --branch release/19.x git@github.com:llvm/llvm-project.git | |
| cd llvm-project | |
| mkdir build | |
| cd build | |
| cmake ../llvm \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DLLVM_ENABLE_PIC=NO \ | |
| -DLLVM_ENABLE_WARNINGS=NO \ | |
| -DLLVM_ENABLE_LIBCXX=YES \ | |
| -DLLVM_ENABLE_ZLIB=NO \ | |
| -DLLVM_ENABLE_ZSTD=NO \ | |
| -DLLVM_ENABLE_TERMINFO=NO \ | |
| -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=YES \ | |
| -DLLVM_ENABLE_ABI_BREAKING_CHECKS=NO \ | |
| -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \ | |
| -DLLVM_TARGETS_TO_BUILD="X86;ARM;AArch64;" \ | |
| -DLLVM_CCACHE_BUILD=OFF | |
| time make | |
| cd ../../ |
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
| xcodebuild -version | |
| brew install cmake | |
| brew install ninja | |
| rm -rf ./llvm-project | |
| git clone --depth 1 --branch release/19.x git@github.com:llvm/llvm-project.git | |
| cd llvm-project | |
| mkdir build | |
| cd build | |
| cmake ../llvm \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DLLVM_ENABLE_PIC=NO \ | |
| -DLLVM_ENABLE_WARNINGS=NO \ | |
| -DLLVM_ENABLE_LIBCXX=YES \ | |
| -DLLVM_ENABLE_ZLIB=NO \ | |
| -DLLVM_ENABLE_ZSTD=NO \ | |
| -DLLVM_ENABLE_TERMINFO=NO \ | |
| -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=YES \ | |
| -DLLVM_ENABLE_ABI_BREAKING_CHECKS=NO \ | |
| -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \ | |
| -DLLVM_TARGETS_TO_BUILD="X86;ARM;AArch64;" \ | |
| -DLLVM_CCACHE_BUILD=OFF | |
| time make -j16 | |
| cd ../../ |
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
| xcodebuild -version | |
| brew install cmake | |
| brew install ninja | |
| git clone --depth 1 --branch release/19.x git@github.com:llvm/llvm-project.git | |
| cd llvm-project | |
| mkdir build | |
| cd build | |
| cmake -G Ninja ../llvm \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DLLVM_ENABLE_PIC=NO \ | |
| -DLLVM_ENABLE_WARNINGS=NO \ | |
| -DLLVM_ENABLE_LIBCXX=YES \ | |
| -DLLVM_ENABLE_ZLIB=NO \ | |
| -DLLVM_ENABLE_ZSTD=NO \ | |
| -DLLVM_ENABLE_TERMINFO=NO \ | |
| -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=YES \ | |
| -DLLVM_ENABLE_ABI_BREAKING_CHECKS=NO \ | |
| -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \ | |
| -DLLVM_TARGETS_TO_BUILD="X86;ARM;AArch64;" \ | |
| -DLLVM_CCACHE_BUILD=OFF | |
| time ninja |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment