diff options
author | pg <pg@yandex-team.com> | 2023-12-05 16:34:00 +0300 |
---|---|---|
committer | pg <pg@yandex-team.com> | 2023-12-05 17:59:49 +0300 |
commit | b51b61ffadf24032448d61993ab84c3334672fd1 (patch) | |
tree | 82ff81fbc4b7403aaff8e108eee12bc44fc7d166 /build/ymake_conf.py | |
parent | 747e11878ae60c06720f08748a4ea304c45d70a3 (diff) | |
download | ydb-b51b61ffadf24032448d61993ab84c3334672fd1.tar.gz |
Diffstat (limited to 'build/ymake_conf.py')
-rwxr-xr-x | build/ymake_conf.py | 5 |
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') |