Skip to content

Instantly share code, notes, and snippets.

@floatplane
Last active December 6, 2018 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save floatplane/68f2006186cef4d3e165 to your computer and use it in GitHub Desktop.
Save floatplane/68f2006186cef4d3e165 to your computer and use it in GitHub Desktop.
rtags OS X
  1. brew install llvm --with-libcxx --with-clang --without-assertions --with-rtti
  2. git clone git@github.com:Andersbakken/rtags.git; cd rtags; git submodule init; git submodule update
  3. 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 .. ```

  1. make && make install
  2. set up launchd integration: https://github.com/Andersbakken/rtags#integration-with-launchd-mac-os-x
  3. generate compile_commands.json: xctool -reporter json-compilation-database:compile_commands.json -workspace iOS/Paper/Paper.xcworkspace -scheme Paper -configuration Debug -derivedDataPath .build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment