aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authormvel <mvel@yandex-team.ru>2022-02-10 16:45:41 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:41 +0300
commitbd30392c4cc92487950adc375c07adf52da1d592 (patch)
treee8d1a3f19b7fc890bcef6e4cc5de41f1d88c9ac3 /build
parent5d50718e66d9c037dc587a0211110b7d25a66185 (diff)
downloadydb-bd30392c4cc92487950adc375c07adf52da1d592.tar.gz
Restoring authorship annotation for <mvel@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build')
-rw-r--r--build/plugins/split_codegen.py30
-rw-r--r--build/ya.conf.json92
-rw-r--r--build/ymake.core.conf10
3 files changed, 66 insertions, 66 deletions
diff --git a/build/plugins/split_codegen.py b/build/plugins/split_codegen.py
index f1e60bc142..2e6cecbca1 100644
--- a/build/plugins/split_codegen.py
+++ b/build/plugins/split_codegen.py
@@ -1,11 +1,11 @@
from _common import sort_by_keywords
-# This hard-coded many times in CppParts in various codegens
-_DEFAULT_CPP_PARTS = 20
-# See TCodegenParams::MethodStream usage in factor codegen
-_ADDITIONAL_STREAM_COUNT = 5
-
+# This hard-coded many times in CppParts in various codegens
+_DEFAULT_CPP_PARTS = 20
+# See TCodegenParams::MethodStream usage in factor codegen
+_ADDITIONAL_STREAM_COUNT = 5
+
def onsplit_codegen(unit, *args):
'''
@usage: SPLIT_CODEGEN(tool prefix opts... [OUT_NUM num] [OUTPUT_INCLUDES output_includes...])
@@ -19,10 +19,10 @@ def onsplit_codegen(unit, *args):
keywords = {"OUT_NUM": 1}
flat_args, spec_args = sort_by_keywords(keywords, args)
- num_outputs = _DEFAULT_CPP_PARTS + _ADDITIONAL_STREAM_COUNT
- if "OUT_NUM" in spec_args:
- num_outputs = int(spec_args["OUT_NUM"][0])
-
+ num_outputs = _DEFAULT_CPP_PARTS + _ADDITIONAL_STREAM_COUNT
+ if "OUT_NUM" in spec_args:
+ num_outputs = int(spec_args["OUT_NUM"][0])
+
tool = flat_args[0]
prefix = flat_args[1]
@@ -30,14 +30,14 @@ def onsplit_codegen(unit, *args):
for num in range(num_outputs):
cmd.append('{}.{}.cpp'.format(prefix, num))
- cpp_parts = int(num_outputs) - _ADDITIONAL_STREAM_COUNT
- cpp_parts_args = ['--cpp-parts', str(cpp_parts)]
-
+ cpp_parts = int(num_outputs) - _ADDITIONAL_STREAM_COUNT
+ cpp_parts_args = ['--cpp-parts', str(cpp_parts)]
+
if len(flat_args) > 2:
if flat_args[2] != 'OUTPUT_INCLUDES':
cmd.append('OPTS')
- cmd += cpp_parts_args + flat_args[2:]
- else:
- cmd += ['OPTS'] + cpp_parts_args
+ cmd += cpp_parts_args + flat_args[2:]
+ else:
+ cmd += ['OPTS'] + cpp_parts_args
unit.on_split_codegen_base(cmd)
diff --git a/build/ya.conf.json b/build/ya.conf.json
index 5f7cc875d6..396cb8890a 100644
--- a/build/ya.conf.json
+++ b/build/ya.conf.json
@@ -460,9 +460,9 @@
"iceflame": {
"description": "Performance data collection and analysis"
},
- "cs": {
- "description": "Fast CodeSearch CLI tool"
- },
+ "cs": {
+ "description": "Fast CodeSearch CLI tool"
+ },
"wall-e": {
"description": "Client for Wall-E"
},
@@ -3508,13 +3508,13 @@
}
]
},
- "ag": {
- "tools": {
+ "ag": {
+ "tools": {
"ag": {
"bottle": "ag",
"executable": "ag"
}
- },
+ },
"platforms": [
{
"host": {
@@ -3523,7 +3523,7 @@
"default": true
}
]
- },
+ },
"yf": {
"tools": {
"yf": {
@@ -5578,28 +5578,28 @@
}
]
},
- "cs": {
- "tools": {
- "cs": {
- "bottle": "cs",
- "executable": "cs"
- }
- },
- "platforms": [
- {
- "host": {
- "os": "LINUX"
- },
- "default": true
- },
- {
- "host": {
- "os": "DARWIN"
- },
- "default": true
- }
- ]
- },
+ "cs": {
+ "tools": {
+ "cs": {
+ "bottle": "cs",
+ "executable": "cs"
+ }
+ },
+ "platforms": [
+ {
+ "host": {
+ "os": "LINUX"
+ },
+ "default": true
+ },
+ {
+ "host": {
+ "os": "DARWIN"
+ },
+ "default": true
+ }
+ ]
+ },
"wall-e": {
"tools": {
"wall-e": {
@@ -6768,17 +6768,17 @@
]
}
},
- "ag": {
- "formula": {
+ "ag": {
+ "formula": {
"sandbox_id": 75851513,
- "match": "Ag"
- },
- "executable": {
+ "match": "Ag"
+ },
+ "executable": {
"ag": [
"ag"
]
- }
- },
+ }
+ },
"valgrind": {
"formula": {
"sandbox_id": 944969271,
@@ -7885,17 +7885,17 @@
]
}
},
- "cs": {
- "formula": {
+ "cs": {
+ "formula": {
"sandbox_id": 1206856496,
- "match": "cs"
- },
- "executable": {
- "cs": [
- "cs"
- ]
- }
- },
+ "match": "cs"
+ },
+ "executable": {
+ "cs": [
+ "cs"
+ ]
+ }
+ },
"wall-e": {
"formula": {
"sandbox_id": 1085675590,
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index 081833998b..dd5d45e9b5 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -297,7 +297,7 @@ USE_VANILLA_PROTOC=no
FML_TOOL=${tool:"tools/relev_fml_codegen"}
FML_UNUSED_TOOL=${tool:"tools/relev_fml_unused"}
LUA_TOOL=${tool:"tools/lua"}
-ENUM_PARSER_TOOL=${tool:"tools/enum_parser/enum_parser"}
+ENUM_PARSER_TOOL=${tool:"tools/enum_parser/enum_parser"}
# tag:python-specific tag:cython-specific
CYTHON_SCRIPT=${input:"${ARCADIA_ROOT}/contrib/tools/cython/cython.py"}
@@ -5375,7 +5375,7 @@ when ($STRIP_DEBUG_INFO) {
### @usage: SPLIT_DWARF()
###
### Emit debug info for the PROGRAM/DLL as a separate file <module_name>.debug.
-### NB: It does not help you to save process RSS but can add problems (see e.g. BEGEMOT-2147).
+### NB: It does not help you to save process RSS but can add problems (see e.g. BEGEMOT-2147).
macro SPLIT_DWARF() {
SET(SPLIT_DWARF_VALUE yes)
}
@@ -6506,8 +6506,8 @@ macro CONFIGURE_FILE(Src, Dst) {
### Generator ${prefix}.cpp + ${prefix}.h files based on ${prefix}.in.
macro BASE_CODEGEN(Tool, Prefix, Opts...) {
.CMD=${tool:Tool} ${input:Prefix.in} ${output;nopath;noauto:Prefix.cpp} ${output;nopath:Prefix.h} $Opts ${kv;hide:"p BC"} ${kv;hide:"pc yellow"}
-}
-
+}
+
# tag:internal
### @usage: _SPLIT_CODEGEN_BASE(tool prefix OUTS[] OUTPUT_INCLUDES[]) # internal
###
@@ -6803,7 +6803,7 @@ macro _MX_GEN_TABLE(Srcs...) {
}
RELEV_FML_CODEGEN_INCLS=${output_include;hide:"kernel/relevfml/relev_fml.h"} ${output_include;hide:"library/cpp/sse/sse.h"}
-
+
### @usage: GENERATE_ENUM_SERIALIZATION(File.h)
###
### Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module.