在 ARM 版 MacBook 上构建 lldb-mi
- 获取 lldb-mi 的源代码
git clone https://github.com/lldb-tools/lldb-mi.git
- 使用 Homebrew 安装 CMake 和 LLVM@14
brew install cmake
brew install llvm@14
- 构建 lldb-mi
cd lldb-mi
mkdir build && cd build
cmake -DLLVM_DIR="$(brew --prefix llvm@14)/lib/cmake/llvm" ..
cmake --build .
- 编译好的 lldb-mi 位于
lldb-mi/build/src/lldb-mi