diff options
author | pg <pg@yandex-team.com> | 2023-08-30 04:40:44 +0300 |
---|---|---|
committer | pg <pg@yandex-team.com> | 2023-08-30 05:04:37 +0300 |
commit | d41c3a928314a3cbea37acf3cc44efcafe2fd5dc (patch) | |
tree | d0975249eec150af8dc4ed0c9dc941358b8a8f88 /build/scripts/link_exe.py | |
parent | 635636bcdbea259fd424ea6e3870b003be140923 (diff) | |
download | ydb-d41c3a928314a3cbea37acf3cc44efcafe2fd5dc.tar.gz |
Diffstat (limited to 'build/scripts/link_exe.py')
-rw-r--r-- | build/scripts/link_exe.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build/scripts/link_exe.py b/build/scripts/link_exe.py index 72d86082694..6d1839e575e 100644 --- a/build/scripts/link_exe.py +++ b/build/scripts/link_exe.py @@ -56,8 +56,10 @@ def fix_sanitize_flag(cmd): if flag.startswith('--target') and 'linux' not in flag.lower(): # use toolchained sanitize libraries return cmd - - CLANG_RT = 'contrib/libs/clang14-rt/lib/' + if 'CLANG16_YES_PLEASE' in str(cmd): + CLANG_RT = 'contrib/libs/clang16-rt/lib/' + else: + CLANG_RT = 'contrib/libs/clang14-rt/lib/' sanitize_flags = { '-fsanitize=address': CLANG_RT + 'asan', '-fsanitize=memory': CLANG_RT + 'msan', |