aboutsummaryrefslogtreecommitdiffstats
path: root/build/ymake_conf.py
diff options
context:
space:
mode:
authorpg <pg@yandex-team.com>2023-12-05 16:34:00 +0300
committerpg <pg@yandex-team.com>2023-12-05 17:59:49 +0300
commitb51b61ffadf24032448d61993ab84c3334672fd1 (patch)
tree82ff81fbc4b7403aaff8e108eee12bc44fc7d166 /build/ymake_conf.py
parent747e11878ae60c06720f08748a4ea304c45d70a3 (diff)
downloadydb-b51b61ffadf24032448d61993ab84c3334672fd1.tar.gz
Diffstat (limited to 'build/ymake_conf.py')
-rwxr-xr-xbuild/ymake_conf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py
index 4047beedb0..ca3a985343 100755
--- a/build/ymake_conf.py
+++ b/build/ymake_conf.py
@@ -1089,7 +1089,10 @@ class Compiler(object):
def print_compiler(self):
# CLANG and CLANG_VER variables
emit(self.compiler_variable, 'yes')
- emit('{}_VER'.format(self.compiler_variable), self.tc.compiler_version)
+ cv = self.tc.compiler_version
+ if '.' in cv:
+ cv = cv[:cv.index('.')]
+ emit('{}_VER'.format(self.compiler_variable), cv)
if self.tc.is_xcode:
emit('XCODE', 'yes')