aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/link_fat_obj.py
diff options
context:
space:
mode:
authorkakabba <kakabba@yandex-team.ru>2022-02-10 16:46:04 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:04 +0300
commit9c914f41ba5e9f9365f404e892197553ac23809e (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /build/scripts/link_fat_obj.py
parentc8e3995898c443e78266f7420aac5fb3da15d413 (diff)
downloadydb-9c914f41ba5e9f9365f404e892197553ac23809e.tar.gz
Restoring authorship annotation for <kakabba@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/scripts/link_fat_obj.py')
-rw-r--r--build/scripts/link_fat_obj.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/build/scripts/link_fat_obj.py b/build/scripts/link_fat_obj.py
index 2700aa4395..c189668b9e 100644
--- a/build/scripts/link_fat_obj.py
+++ b/build/scripts/link_fat_obj.py
@@ -1,7 +1,7 @@
-import argparse
-import subprocess
-import sys
-
+import argparse
+import subprocess
+import sys
+
from process_whole_archive_option import ProcessWholeArchiveOption
YA_ARG_PREFIX = '-Ya,'
@@ -16,7 +16,7 @@ def get_args():
parser.add_argument('--build-root', default=None)
parser.add_argument('--with-own-obj', action='store_true', default=False)
parser.add_argument('--with-global-srcs', action='store_true', default=False)
-
+
groups = {}
args_list = groups.setdefault('default', [])
for arg in sys.argv[1:]:
@@ -68,17 +68,17 @@ def main():
do_archive += auto_input
if args.with_global_srcs:
do_archive += global_srcs
-
+
def call(c):
proc = subprocess.Popen(c, shell=False, stderr=sys.stderr, stdout=sys.stdout, cwd=args.build_root)
proc.communicate()
return proc.returncode
-
+
if obj_output:
link_res = call(do_link)
if link_res:
sys.exit(link_res)
-
+
if do_globals:
glob_res = call(do_globals)
if glob_res: