From 4e29d70a32f6de7c4372f3a0a47791e0f5fe0346 Mon Sep 17 00:00:00 2001 From: Reza Nikoopour Date: Thu, 13 Feb 2020 17:15:19 -0800 Subject: [PATCH] Added instructions for alpine linux --- Build.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Build.md b/Build.md index 61074b9..9d5db95 100644 --- a/Build.md +++ b/Build.md @@ -122,6 +122,15 @@ The Windows prebuilt binaries lack C++ header files, thus they cannot be used. On GNU/Linux distributions with older versions of glibc (older than 2013-04-25), such as Red Hat EL 6.x, append `-DCMAKE_CXX_FLAGS=-D__STDC_FORMAT_MACROS` +### Alpine Linux +```sh +apk add alpine-sdk cmake make clang clang-static clang-dev llvm-dev llvm-static \ + && git clone --depth=1 --recursive https://github.com/MaskRay/ccls \ + && cd ccls \ + && cmake -H. -BRelease -DCMAKE_BUILD_TYPE=Release \ + && cmake --build Release --target install +``` + ### Arch Linux Arch User Repository: [aur/ccls-git](https://aur.archlinux.org/packages/ccls-git).