Updated: 2023-03-19
brew install --debug llvm@14
...
- raise
- ignore
- backtrace
- irb
- shell
Choose an action: 5
...
cd llvm/build
cmake . -DLLVM_CREATE_XCODE_TOOLCHAIN=On
...
nano ../../lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm
You need to change this line:
if (cputype == CPU_TYPE_ARM64 && cpusubtype == CPU_SUBTYPE_ARM64E) {
to:
if (cputype == CPU_TYPE_ARM64) {
cmake --build .
cmake --build . --target install
cmake --build . --target install-xcode-toolchain
Then, press control + D to return to debug menu.
Choose 2 (ignore) two times:
- raise
- ignore
- backtrace
- irb
- shell
Choose an action: 2
Build it with LLVM's clang
brew install isl --cc=llvm_clang