brew install llvm --with-libcxx --with-clang --without-assertions --with-rtti
git clone git@github.com:Andersbakken/rtags.git; cd rtags; git submodule init; git submodule update
- make a build directory, run cmake from it:
brian@brian-desktop.local: /Users/brian/src/rtags/build [master] $ LLVM_CONFIG=/usr/local/opt/llvm/bin/llvm-config CMAKE_PREFIX_PATH=/usr/local/opt/llvm CC=/usr/local/opt/llvm/bin/clang CXX=/usr/local/opt/llvm/bin/clang++ cmake .. ```
make && make install
- set up launchd integration: https://github.com/Andersbakken/rtags#integration-with-launchd-mac-os-x
- generate compile_commands.json:
xctool -reporter json-compilation-database:compile_commands.json -workspace iOS/Paper/Paper.xcworkspace -scheme Paper -configuration Debug -derivedDataPath .build