MCPcopy Create free account
hub / github.com/nodejs/node / verify_build_config

Function verify_build_config

deps/v8/tools/gcmole/gcmole.py:857–870  ·  view source on GitHub ↗
(parser, options)

Source from the content-addressed store, hash-verified

855
856
857def verify_build_config(parser, options):
858 if options.is_bot:
859 #TODO(cbruni): Fix, currently not supported on the bots
860 return
861 config_file = options.v8_build_dir / 'v8_build_config.json'
862 with open(config_file) as f:
863 config = json.load(f)
864 found_cpu = None
865 for key in ('v8_target_cpu', 'target_cpu', 'current_cpu'):
866 found_cpu = config.get('v8_target_cpu')
867 if found_cpu == options.v8_target_cpu:
868 return
869 parser.error("Build dir '{}' config doesn't match request cpu. {}: {}".format(
870 options.v8_build_dir, options.v8_target_cpu, found_cpu))
871
872
873def override_env_options(options):

Callers 1

mainFunction · 0.85

Calls 5

getMethod · 0.65
formatMethod · 0.65
openFunction · 0.50
loadMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected