Build: mention -DCLANG_LINK_CLANG_DYLIB=on -DLLVM_LINK_LLVM_DYLIB=on for Arch Linux

Fangrui Song 2020-04-22 09:29:29 -07:00
parent 9795aab015
commit eca053382d

@ -135,6 +135,8 @@ apk add alpine-sdk cmake make clang clang-static clang-dev llvm-dev llvm-static
Arch User Repository: [aur/ccls-git](https://aur.archlinux.org/packages/ccls-git).
To build with `extra/clang`: `-DCLANG_LINK_CLANG_DYLIB=on -DLLVM_LINK_LLVM_DYLIB=on`
`extra/clang` and `extra/llvm` provide `/usr/lib/{libclangAST.so,libLLVM*.a,libLLVM.so}`.
`libclangAST.so` needs `libLLVM.so` and there would be a conflict if `libLLVM*.a` (instead of `libLLVM.so`) are linked. See https://bugs.archlinux.org/task/60512