aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/link_fat_obj.py
diff options
context:
space:
mode:
authorDmitry Kopylov <kopylovd@gmail.com>2022-02-10 16:48:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:18 +0300
commitb2f5101486cc0de2e979c8ba9ada2109785bf5fd (patch)
treeaffe28b840816b505db0467f2285b01c89c04247 /build/scripts/link_fat_obj.py
parente9b28b5aad71453a4637b70dde02e801e4147a2a (diff)
downloadydb-b2f5101486cc0de2e979c8ba9ada2109785bf5fd.tar.gz
Restoring authorship annotation for Dmitry Kopylov <kopylovd@gmail.com>. Commit 1 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 c189668b9e..9bf6254255 100644
--- a/build/scripts/link_fat_obj.py
+++ b/build/scripts/link_fat_obj.py
@@ -8,11 +8,11 @@ YA_ARG_PREFIX = '-Ya,'
def get_args():
- parser = argparse.ArgumentParser()
+ parser = argparse.ArgumentParser()
parser.add_argument('--obj')
parser.add_argument('--globals-lib')
- parser.add_argument('--lib', required=True)
- parser.add_argument('--arch', required=True)
+ parser.add_argument('--lib', required=True)
+ parser.add_argument('--arch', required=True)
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)
@@ -46,8 +46,8 @@ def main():
auto_input = groups['input']
# Outputs
- lib_output = args.lib
- obj_output = args.obj
+ lib_output = args.lib
+ obj_output = args.obj
# Dependencies
global_srcs = groups['global_srcs']
@@ -69,10 +69,10 @@ def main():
if args.with_global_srcs:
do_archive += global_srcs
- def call(c):
+ def call(c):
proc = subprocess.Popen(c, shell=False, stderr=sys.stderr, stdout=sys.stdout, cwd=args.build_root)
- proc.communicate()
- return proc.returncode
+ proc.communicate()
+ return proc.returncode
if obj_output:
link_res = call(do_link)