diff options
author | dcherednik <dcherednik@ydb.tech> | 2023-08-08 19:09:59 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2023-08-08 20:06:19 +0300 |
commit | f5e11e4e5841f5e6dbb9d0c29e958ff024bca4ab (patch) | |
tree | 95c84ab60689458cfb476f806a05ab2fe3fa1dfb /BUILD.md | |
parent | 3b1425ae1bdde07577f85e623296e01229b65dc3 (diff) | |
download | ydb-f5e11e4e5841f5e6dbb9d0c29e958ff024bca4ab.tar.gz |
Use clang-14 for build, update instruction
Diffstat (limited to 'BUILD.md')
-rw-r--r-- | BUILD.md | 24 |
1 files changed, 6 insertions, 18 deletions
@@ -6,8 +6,8 @@ Below is a list of packages that need to be installed before building YDB. 'How to Build' section contains step by step instructions to obtain these packages. - cmake 3.22+ - - clang-12 - - lld-12 + - clang-14 + - lld-14 - git 2.20+ - python3.8 - pip3 @@ -28,28 +28,16 @@ ## (optional) Add CMake and LLVM APT repositories (for Ubuntu 18.04 and 20.04) -## Ubuntu 18.04 +## Ubuntu 18.04 and Ubuntu 20.04 -For Ubuntu 18.04, you have to add CMake and LLVM APT repositories: +For Ubuntu 18.04 and Ubuntu 20.04, you have to add CMake and LLVM APT repositories: ```bash wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc | sudo apt-key add - echo "deb http://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - -echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-12 main" | sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null - -sudo apt-get update - -``` - -## Ubuntu 20.04 - -For Ubuntu 20.04, you have to add CMake APT repository: - -```bash -wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc | sudo apt-key add - -echo "deb http://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null +echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-14 main" | sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null sudo apt-get update @@ -59,7 +47,7 @@ sudo apt-get update ## Install dependencies ```bash -sudo apt-get -y install git cmake python3-pip ninja-build antlr3 m4 clang-12 lld-12 libidn11-dev libaio1 libaio-dev llvm-12 +sudo apt-get -y install git cmake python3-pip ninja-build antlr3 m4 clang-14 lld-14 libidn11-dev libaio1 libaio-dev llvm-14 sudo pip3 install conan==1.59 ``` |