aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/link_exe.py
diff options
context:
space:
mode:
authortekireeva <tekireeva@yandex-team.ru>2022-02-10 16:51:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:38 +0300
commite9d6dd2e511aaaec9e6182b7ae9327dce82a051d (patch)
treeb0c986cf74d10d4aea897f76c8dcec5ee84efc4f /build/scripts/link_exe.py
parent597c5894e3c8cdfa680c5a5e8c2e69b61dce8254 (diff)
downloadydb-e9d6dd2e511aaaec9e6182b7ae9327dce82a051d.tar.gz
Restoring authorship annotation for <tekireeva@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/scripts/link_exe.py')
-rw-r--r--build/scripts/link_exe.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/build/scripts/link_exe.py b/build/scripts/link_exe.py
index f469e3b442..c4319c4cb9 100644
--- a/build/scripts/link_exe.py
+++ b/build/scripts/link_exe.py
@@ -2,13 +2,13 @@ import sys
import subprocess
import optparse
-from process_whole_archive_option import ProcessWholeArchiveOption
-
+from process_whole_archive_option import ProcessWholeArchiveOption
+
def get_leaks_suppressions(cmd):
supp, newcmd = [], []
for arg in cmd:
- if arg.endswith(".supp"):
+ if arg.endswith(".supp"):
supp.append(arg)
else:
newcmd.append(arg)
@@ -22,14 +22,14 @@ def fix_cmd(musl, c):
return [i for i in c if (not musl or i not in musl_libs) and not i.endswith('.ios.interface') and not i.endswith('.pkg.fake')]
-def gen_default_suppressions(inputs, output, source_root):
+def gen_default_suppressions(inputs, output, source_root):
import collections
import os
supp_map = collections.defaultdict(set)
for filename in inputs:
sanitizer = os.path.basename(filename).split('.', 1)[0]
- with open(os.path.join(source_root, filename)) as src:
+ with open(os.path.join(source_root, filename)) as src:
for line in src:
line = line.strip()
if not line or line.startswith('#'):
@@ -49,11 +49,11 @@ def parse_args():
parser.add_option('--musl', action='store_true')
parser.add_option('--custom-step')
parser.add_option('--python')
- parser.add_option('--source-root')
- parser.add_option('--arch')
+ parser.add_option('--source-root')
+ parser.add_option('--arch')
parser.add_option('--linker-output')
- parser.add_option('--whole-archive-peers', action='append')
- parser.add_option('--whole-archive-libs', action='append')
+ parser.add_option('--whole-archive-peers', action='append')
+ parser.add_option('--whole-archive-libs', action='append')
return parser.parse_args()
@@ -61,7 +61,7 @@ if __name__ == '__main__':
opts, args = parse_args()
cmd = fix_cmd(opts.musl, args)
- cmd = ProcessWholeArchiveOption(opts.arch, opts.whole_archive_peers, opts.whole_archive_libs).construct_cmd(cmd)
+ cmd = ProcessWholeArchiveOption(opts.arch, opts.whole_archive_peers, opts.whole_archive_libs).construct_cmd(cmd)
if opts.custom_step:
assert opts.python
@@ -70,7 +70,7 @@ if __name__ == '__main__':
supp, cmd = get_leaks_suppressions(cmd)
if supp:
src_file = "default_suppressions.cpp"
- gen_default_suppressions(supp, src_file, opts.source_root)
+ gen_default_suppressions(supp, src_file, opts.source_root)
cmd += [src_file]
if opts.linker_output: