Skip to content
Fangrui Song edited this page Oct 19, 2024 · 5 revisions

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/maskray/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"

brew install cmake neovim ninja

Use lldb:

sudo DevToolsSecurity -enable
asoftwareupdate -i 'Command Line Tools for Xcode-12.5'
sudo xcode-select --switch /Library/Developer/CommandLineTools/

softwareupdate --install-rosetta

LLVM

/opt/homebrew/bin/cmake -GNinja -Sllvm -Bout/debug -DCMAKE_BUILD_TYPE=Debug -DCLANG_ENABLE_ARCMT=off -DCLANG_ENABLE_STATIC_ANALYZER=off -DCLANG_PLUGIN_SUPPORT=off -DLLVM_ENABLE_PROJECTS='clang;lld;compiler-rt' -DCOMPILER_RT_ENABLE_IOS=off -DLLVM_TARGETS_TO_BUILD='X86;AArch64' -DLLVM_ENABLE_UNWIND_TABLES=OFF -DLLVM_APPEND_VC_REV=OFF -DLLVM_OPTIMIZED_TABLEGEN=On

Terminal

Keyboard - Use Option as Meta

Clone this wiki locally