diff options
author | pg <pg@yandex-team.com> | 2023-03-18 12:21:01 +0300 |
---|---|---|
committer | pg <pg@yandex-team.com> | 2023-03-18 12:21:01 +0300 |
commit | 9c1808926f0ae75b6fc5866f45d3e9f1b963fb52 (patch) | |
tree | 2b7ed26c75a454c75795678a754c555878cbfb50 | |
parent | de7e611ef0b7c3680f448cc40bae4f57a66800a4 (diff) | |
download | ydb-9c1808926f0ae75b6fc5866f45d3e9f1b963fb52.tar.gz |
-rw-r--r-- | build/scripts/link_lib.py | 4 |
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) |