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

Function AddTargetsForArch

deps/v8/tools/dev/update-compile-commands.py:66–76  ·  view source on GitHub ↗
(arch, combined)

Source from the content-addressed store, hash-verified

64 return build_dir
65
66def AddTargetsForArch(arch, combined):
67 build_dir = PrepareBuildDir(arch, "debug")
68 commands = compile_db.ProcessCompileDatabase(
69 compile_db.GenerateWithNinja(build_dir, ["all"]), [])
70 added = 0
71 for c in commands:
72 key = c["file"]
73 if key not in combined:
74 combined[key] = c
75 added += 1
76 print(f"{arch}: added {added} compile commands")
77
78def UpdateCompileCommands():
79 print(">>> Updating compile_commands.json...")

Callers 1

UpdateCompileCommandsFunction · 0.85

Calls 2

PrepareBuildDirFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected