MCPcopy Index your code
hub / github.com/nodejs/node / GetConfig

Method GetConfig

deps/v8/tools/mb/mb.py:490–510  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

488 return 0
489
490 def GetConfig(self):
491 build_dir = self.args.path[0]
492
493 vals = self.DefaultVals()
494 if self.args.builder or self.args.builder_group or self.args.config:
495 vals = self.Lookup()
496 # Re-run gn gen in order to ensure the config is consistent with the
497 # build dir.
498 self.RunGNGen(vals)
499 return vals
500
501 toolchain_path = self.PathJoin(self.ToAbsPath(build_dir),
502 'toolchain.ninja')
503 if not self.Exists(toolchain_path):
504 self.Print('Must either specify a path to an existing GN build dir '
505 'or pass in a -m/-b pair or a -c flag to specify the '
506 'configuration')
507 return {}
508
509 vals['gn_args'] = self.GNArgsFromDir(build_dir)
510 return vals
511
512 def GNArgsFromDir(self, build_dir):
513 args_contents = ""

Callers 2

CmdIsolateMethod · 0.95
CmdRunMethod · 0.95

Calls 8

DefaultValsMethod · 0.95
LookupMethod · 0.95
RunGNGenMethod · 0.95
PathJoinMethod · 0.95
ToAbsPathMethod · 0.95
ExistsMethod · 0.95
PrintMethod · 0.95
GNArgsFromDirMethod · 0.95

Tested by

no test coverage detected