aboutsummaryrefslogtreecommitdiffstats
path: root/BUILD.md
diff options
context:
space:
mode:
authordcherednik <dcherednik@ydb.tech>2023-08-08 19:09:59 +0300
committerdcherednik <dcherednik@ydb.tech>2023-08-08 20:06:19 +0300
commitf5e11e4e5841f5e6dbb9d0c29e958ff024bca4ab (patch)
tree95c84ab60689458cfb476f806a05ab2fe3fa1dfb /BUILD.md
parent3b1425ae1bdde07577f85e623296e01229b65dc3 (diff)
downloadydb-f5e11e4e5841f5e6dbb9d0c29e958ff024bca4ab.tar.gz
Use clang-14 for build, update instruction
Diffstat (limited to 'BUILD.md')
-rw-r--r--BUILD.md24
1 files changed, 6 insertions, 18 deletions
diff --git a/BUILD.md b/BUILD.md
index a5510d35b3..0bbf9af6c5 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -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
```