aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpg <pg@yandex-team.com>2023-03-18 12:21:01 +0300
committerpg <pg@yandex-team.com>2023-03-18 12:21:01 +0300
commit9c1808926f0ae75b6fc5866f45d3e9f1b963fb52 (patch)
tree2b7ed26c75a454c75795678a754c555878cbfb50
parentde7e611ef0b7c3680f448cc40bae4f57a66800a4 (diff)
downloadydb-9c1808926f0ae75b6fc5866f45d3e9f1b963fb52.tar.gz
-rw-r--r--build/scripts/link_lib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/scripts/link_lib.py b/build/scripts/link_lib.py
index 00cedceb1f..b5e28e1f93 100644
--- a/build/scripts/link_lib.py
+++ b/build/scripts/link_lib.py
@@ -2,6 +2,7 @@ import sys
import subprocess
import tempfile
import os
+import shutil
class Opts(object):
@@ -77,6 +78,9 @@ if __name__ == "__main__":
cmd = [opts.archiver] + opts.create_flags + opts.plugin_flags + opts.extra_args + opts.output_opts + opts.objs
stdin = None
exit_code = call()
+ elif len(opts.objs) == 0 and len(opts.libs) == 1:
+ shutil.copy(opts.libs[0], opts.output)
+ exit_code = 0
else:
temp = tempfile.NamedTemporaryFile(dir=os.path.dirname(opts.output), delete=False)