aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpg <pg@yandex-team.com>2023-08-16 14:00:11 +0300
committerpg <pg@yandex-team.com>2023-08-16 16:07:35 +0300
commit8662d99f68311ede697154b9fb02e3fd9e9ad52e (patch)
tree26a294cad3fb5a933c1c1532cc39457427af03e2
parentf857fe00350145dca351fd52073da53124ae18a6 (diff)
downloadydb-8662d99f68311ede697154b9fb02e3fd9e9ad52e.tar.gz
merge partial clang16 support
-rw-r--r--build/scripts/link_exe.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/scripts/link_exe.py b/build/scripts/link_exe.py
index da64b902e7..01e9b9f41f 100644
--- a/build/scripts/link_exe.py
+++ b/build/scripts/link_exe.py
@@ -166,6 +166,9 @@ if __name__ == '__main__':
cmd = fix_sanitize_flag(cmd)
+ if 'ld.lld' in str(cmd):
+ cmd.append('-Wl,-no-pie')
+
if opts.dynamic_cuda:
cmd = fix_cmd_for_dynamic_cuda(cmd)
cmd = ProcessWholeArchiveOption(opts.arch, opts.whole_archive_peers, opts.whole_archive_libs).construct_cmd(cmd)