Last active
December 19, 2020 17:22
-
-
Save lakshya-sky/117e3040b2aa39988771f7f0915e2fda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/llvm/llvm-project.git | |
cd llvm-project | |
conda install conda-forge::ncurses | |
/// Above required for libtinfo.6.dylib which installs to lib in your conda directory. | |
/// Ex: ~/miniconda3/lib/libtinfo.6.dylib | |
set environment variable CONDA_LIBRARY_PATH to that lib folder (here. ~/miniconda3/lib). | |
Follow changes from this commit: https://reviews.llvm.org/D93177 | |
After that- | |
mkdir build | |
cd build | |
cmake ../llvm \ (base) | |
-GNinja -DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_BUILD_RPATH="${CONDA_LIBRARY_PATH}" \ | |
-DLLVM_TARGETS_TO_BUILD='AArch64' \ | |
-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra' | |
ninja clangd | |
Copy clangd beside clang for -resource-dir issue with nvim-lsp. (For Mac Os: /Library/Developer/CommandLineTools/usr/bin/) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment