Skip to content

Instantly share code, notes, and snippets.

@amekusa
Last active September 18, 2024 04:28
Show Gist options
  • Save amekusa/59758c85ecaf7119f5cd96a5df191d3b to your computer and use it in GitHub Desktop.
Save amekusa/59758c85ecaf7119f5cd96a5df191d3b to your computer and use it in GitHub Desktop.
Notes for installing/updating LLVM on macOS High Sierra

Installing/Updating LLVM on macOS High Sierra

Updated: 2023-03-19


Installing LLVM (14)

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

https://stackoverflow.com/questions/69906053/how-to-install-llvm13-with-homerew-on-macos-high-sierra-10-13-6-got-built-tar

Updating LLVM

Dealing with the dependencies

Cannot install isl due to error: call to unavailable member function 'value' ...

Build it with LLVM's clang

brew install isl --cc=llvm_clang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment