From eca053382d52e1024ab039fd917b248d5afe8835 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 22 Apr 2020 09:29:29 -0700 Subject: [PATCH] Build: mention -DCLANG_LINK_CLANG_DYLIB=on -DLLVM_LINK_LLVM_DYLIB=on for Arch Linux --- Build.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Build.md b/Build.md index 29a3cb3..a04e2f5 100644 --- a/Build.md +++ b/Build.md @@ -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