From 9f2230b7d948c4b971c940b0d89bcded97413a8d Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 14 Aug 2025 22:30:14 -0700 Subject: [PATCH] Build: update --- Build.md | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Build.md b/Build.md index 95ed7c1..009440e 100644 --- a/Build.md +++ b/Build.md @@ -15,8 +15,8 @@ The simplest/quickest build with all defaults (only for POSIX systems) is: git clone --depth=1 --recursive https://github.com/MaskRay/ccls cd ccls -# Download "Pre-Built Binaries" from https://releases.llvm.org/download.html -# and unpack to /path/to/clang+llvm-xxx. +# Download "LLVM-20.1.8-Linux-X64.tar.xz" assets from https://github.com/llvm/llvm-project/releases/ +# ("Pre-Built Binaries" from https://releases.llvm.org/download.html) # Do not unpack to a temporary directory, as the clang resource directory is hard-coded # into ccls at compile time! # See https://github.com/MaskRay/ccls/wiki/FAQ#verify-the-clang-resource-directory-is-correct @@ -36,16 +36,6 @@ Proceed with `cmake --build Release` and, if successful, `cd Release && sudo mak **Note** You will need `sudo apt-get install libclang-10-dev` as well for Ubuntu 20.04 build. -Ubuntu 18.04 prebuilt binaries are actually suitable for many non-Ubuntu distributions. -You may replace the last two **cmake** commands with: - -```sh -wget -c http://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz -tar xf clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz -cmake -S. -BRelease -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PWD/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04 -cmake --build Release -``` - The resulting executable will be `Release/ccls`. If you forgot to pass `--recursive` when cloning the repo, `git submodule update --init` to clone the rapidjson repository.