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

Method GNCmd

deps/v8/tools/mb/mb.py:935–950  ·  view source on GitHub ↗
(self, subcommand, path, *args)

Source from the content-addressed store, hash-verified

933 return err, labels
934
935 def GNCmd(self, subcommand, path, *args):
936 if self.platform.startswith('linux'):
937 subdir, exe = 'linux64', 'gn'
938 elif self.platform == 'darwin':
939 subdir, exe = 'mac', 'gn'
940 else:
941 subdir, exe = 'win', 'gn.exe'
942
943 arch = platform.machine()
944 if (arch.startswith('s390') or arch.startswith('ppc') or
945 self.platform.startswith('aix')):
946 # use gn in PATH
947 gn_path = 'gn'
948 else:
949 gn_path = self.PathJoin(self.chromium_src_dir, 'buildtools', subdir, exe)
950 return [gn_path, subcommand, path] + list(args)
951
952
953 def GNArgs(self, vals, expand_imports=False):

Callers 4

CmdLookupMethod · 0.95
RunGNGenMethod · 0.95
RunGNIsolateMethod · 0.95
RunGNAnalyzeMethod · 0.95

Calls 2

PathJoinMethod · 0.95
listFunction · 0.50

Tested by

no test coverage detected