aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorpg <pg@yandex-team.com>2024-02-01 14:12:56 +0300
committerAlexander Smirnov <alex@ydb.tech>2024-02-09 19:16:54 +0300
commit8cab99c1b33493d3cf402df31f419121f5dc1175 (patch)
tree96268909660dbf090e801d37796001d1f63d2a87 /build
parent05e895a3e1d6a695a533bb1e61d76a82a901d943 (diff)
downloadydb-8cab99c1b33493d3cf402df31f419121f5dc1175.tar.gz
Diffstat (limited to 'build')
-rw-r--r--build/ymake.core.conf5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index 0cbf22b6a0..62762972d6 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -4558,6 +4558,7 @@ macro CTEMPLATE_VARNAMES(File) {
LLVM_OPTS=
CLANG_BC_ROOT=${CLANG11_RESOURCE_GLOBAL}
+CLANG_BC_EXTRA=/std:c++latest
macro USE_LLVM_BC12() {
SET(CLANG_BC_ROOT ${CLANG12_RESOURCE_GLOBAL})
@@ -4565,10 +4566,12 @@ macro USE_LLVM_BC12() {
macro USE_LLVM_BC14() {
SET(CLANG_BC_ROOT ${CLANG14_RESOURCE_GLOBAL})
+ SET(CLANG_BC_EXTRA /std:c++20)
}
macro USE_LLVM_BC16() {
SET(CLANG_BC_ROOT ${CLANG16_RESOURCE_GLOBAL})
+ SET(CLANG_BC_EXTRA /std:c++20)
}
CLANG_DEFAULT_ROOT=${CLANG_RESOURCE_GLOBAL}
@@ -4582,7 +4585,7 @@ when ($OS_WINDOWS == "yes") {
# so we set c++20 for it
# for clang11 (actual clang for CLANG_EMIT_AST_CXX and LLVM_COMPILE_* macroses) /std:c++20 provokes "unused-command-line-argument" error
# !do not forget to change this flag when updating build/platform/clang
- CLANG_EMIT_EXTRA_OPTS+=/std:c++latest
+ CLANG_EMIT_EXTRA_OPTS+=$CLANG_BC_EXTRA
}
when ($OS_ANDROID == "yes") {