Last active
          July 28, 2025 22:58 
        
      - 
      
 - 
        
Save krystophny/769a6a9af615910ce209ef38c0cf0db8 to your computer and use it in GitHub Desktop.  
    Configure LLVM build on 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
    
  
  
    
  | cmake ../llvm \ | |
| -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
| -DCMAKE_INSTALL_PREFIX=/opt/llvm-git \ | |
| -DLLVM_ENABLE_PROJECTS="clang;lld;lldb;mlir;flang" \ | |
| -DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx;libcxxabi;libunwind;openmp" \ | |
| -DLLVM_TARGETS_TO_BUILD="AArch64" \ | |
| -DLLVM_ENABLE_ASSERTIONS=ON \ | |
| -DLLDB_ENABLE_PYTHON=ON \ | |
| -DPython3_EXECUTABLE=$(which python) \ | |
| -DCMAKE_OSX_ARCHITECTURES=arm64 \ | |
| -DLLDB_USE_SYSTEM_DEBUGSERVER=ON | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Uh oh!
There was an error while loading. Please reload this page.