aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/yndexer.py
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /build/scripts/yndexer.py
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
downloadydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/scripts/yndexer.py')
-rw-r--r--build/scripts/yndexer.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/build/scripts/yndexer.py b/build/scripts/yndexer.py
index a38e28ba99f..3737b0cce13 100644
--- a/build/scripts/yndexer.py
+++ b/build/scripts/yndexer.py
@@ -2,11 +2,11 @@ import sys
import subprocess
import threading
import os
-import re
+import re
-rx_resource_dir = re.compile(r'libraries: =([^:]*)')
-
+rx_resource_dir = re.compile(r'libraries: =([^:]*)')
+
def _try_to_kill(process):
try:
@@ -54,22 +54,22 @@ if __name__ == '__main__':
subprocess.check_call(tail_args)
- clang = tail_args[0]
- out = subprocess.check_output([clang, '-print-search-dirs'])
- resource_dir = rx_resource_dir.search(out).group(1)
-
- yndexer_args = [
- yndexer, input_file,
- '-pb2',
- '-i', 'arc::{}'.format(arc_root),
+ clang = tail_args[0]
+ out = subprocess.check_output([clang, '-print-search-dirs'])
+ resource_dir = rx_resource_dir.search(out).group(1)
+
+ yndexer_args = [
+ yndexer, input_file,
+ '-pb2',
+ '-i', 'arc::{}'.format(arc_root),
'-i', 'build::{}'.format(build_root),
- '-i', '.IGNORE::/',
- '-o', os.path.dirname(output_file),
- '-n', os.path.basename(output_file).rsplit('.ydx.pb2', 1)[0],
- '--'
- ] + tail_args + [
- '-resource-dir', resource_dir,
- ]
+ '-i', '.IGNORE::/',
+ '-o', os.path.dirname(output_file),
+ '-n', os.path.basename(output_file).rsplit('.ydx.pb2', 1)[0],
+ '--'
+ ] + tail_args + [
+ '-resource-dir', resource_dir,
+ ]
process = Process(yndexer_args)
result = process.wait(timeout=timeout)