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

Function UpdateCompileCommands

deps/v8/tools/dev/update-compile-commands.py:78–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 print(f"{arch}: added {added} compile commands")
77
78def UpdateCompileCommands():
79 print(">>> Updating compile_commands.json...")
80 combined = {}
81 AddTargetsForArch("x64", combined)
82 AddTargetsForArch("arm64", combined)
83 if DEFAULT_ARCH != "arm64":
84 # Mac arm64 doesn't like 32bit platforms:
85 AddTargetsForArch("ia32", combined)
86 AddTargetsForArch("arm", combined)
87 commands = []
88 for key in combined:
89 commands.append(combined[key])
90 _Write("compile_commands.json", json.dumps(commands, indent=2))
91
92def CompileLanguageServer():
93 print(">>> Compiling Torque Language Server...")

Callers 1

Calls 4

AddTargetsForArchFunction · 0.85
_WriteFunction · 0.85
printFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected