aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/link_dyn_lib.py
diff options
context:
space:
mode:
authorpg <pg@yandex-team.com>2025-02-19 08:15:22 +0300
committerpg <pg@yandex-team.com>2025-02-19 08:30:44 +0300
commited0310f9bc1913aa77041021bee5d3d45a2a40a9 (patch)
treee594938c46024c16c3d39f0d744538749471cc1b /build/scripts/link_dyn_lib.py
parent3494d9f2e7b20b5c60c37ded78271da815ce8495 (diff)
downloadydb-ed0310f9bc1913aa77041021bee5d3d45a2a40a9.tar.gz
refactor out new plugin
commit_hash:9e7d09577713ceb4c1bfabf9b70a494f8d0c3532
Diffstat (limited to 'build/scripts/link_dyn_lib.py')
-rw-r--r--build/scripts/link_dyn_lib.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/build/scripts/link_dyn_lib.py b/build/scripts/link_dyn_lib.py
index 650f198f3c..d889ae27c5 100644
--- a/build/scripts/link_dyn_lib.py
+++ b/build/scripts/link_dyn_lib.py
@@ -187,17 +187,6 @@ def fix_cmd_for_dynamic_cuda(cmd):
return flags
-def fix_blas_resolving(cmd):
- # Intel mkl comes as a precompiled static library and thus can not be recompiled with sanitizer runtime instrumentation.
- # That's why we prefer to use cblas instead of Intel mkl as a drop-in replacement under sanitizers.
- # But if the library has dependencies on mkl and cblas simultaneously, it will get a linking error.
- # Hence we assume that it's probably compiling without sanitizers and we can easily remove cblas to prevent multiple definitions of the same symbol at link time.
- for arg in cmd:
- if arg.startswith('contrib/libs') and arg.endswith('mkl-lp64.a'):
- return [arg for arg in cmd if not arg.endswith('libcontrib-libs-cblas.a')]
- return cmd
-
-
def parse_args(args):
parser = optparse.OptionParser()
parser.disable_interspersed_args()
@@ -242,7 +231,7 @@ if __name__ == '__main__':
assert opts.arch
assert opts.target
- cmd = fix_blas_resolving(args)
+ cmd = args
cmd = fix_cmd(opts.arch, cmd)
if opts.dynamic_cuda: