aboutsummaryrefslogtreecommitdiffstats
path: root/build/ymake_conf.py
diff options
context:
space:
mode:
authorsnermolaev <snermolaev@yandex-team.com>2023-09-13 07:27:16 +0300
committersnermolaev <snermolaev@yandex-team.com>2023-09-13 08:04:36 +0300
commit507ddd3b203db0d1098d1404fdd444831d765292 (patch)
treecac65e03ef87cf53175cd670318bf87fa43608ab /build/ymake_conf.py
parente59a7ab4c1fde37937a3852e0dd6f8a23aab82cd (diff)
downloadydb-507ddd3b203db0d1098d1404fdd444831d765292.tar.gz
flag to disable ymake conf customization DISABLE_YMAKE_CONF_CUSTOMIZATION
Diffstat (limited to 'build/ymake_conf.py')
-rwxr-xr-xbuild/ymake_conf.py25
1 files changed, 14 insertions, 11 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py
index c4089df22c..4c3d4de1c6 100755
--- a/build/ymake_conf.py
+++ b/build/ymake_conf.py
@@ -25,6 +25,14 @@ def init_logger(verbose):
logging.basicConfig(level=logging.DEBUG if verbose else logging.INFO)
+def find_conf(conf_file):
+ script_dir = os.path.dirname(__file__)
+ full_path = os.path.join(script_dir, conf_file)
+ if os.path.exists(full_path):
+ return full_path
+ return None
+
+
class DebugString(object):
def __init__(self, get_string_func):
self.get_string_func = get_string_func
@@ -778,17 +786,6 @@ class YMake(object):
def print_settings(self):
emit_with_ignore_comment('ARCADIA_ROOT', self.arcadia.root)
- @staticmethod
- def _find_conf(conf_file):
- script_dir = os.path.dirname(__file__)
- full_path = os.path.join(script_dir, conf_file)
- if os.path.exists(full_path):
- return full_path
- return None
-
- def _find_core_conf(self):
- return self._find_conf('ymake.core.conf')
-
class System(object):
def __init__(self, platform):
@@ -2530,6 +2527,12 @@ def main():
ymake = YMake(arcadia)
ymake.print_core_conf()
+
+ _INTERNAL_CONF = 'internal/conf/internal.conf'
+ internal_conf_full_path = find_conf(_INTERNAL_CONF)
+ if internal_conf_full_path and not is_positive('DISABLE_YMAKE_CONF_CUSTOMIZATION'):
+ print('@import "${{CONF_ROOT}}/{}"'.format(_INTERNAL_CONF))
+
ymake.print_presets()
ymake.print_settings()