(arch, combined)
| 64 | return build_dir |
| 65 | |
| 66 | def 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 | |
| 78 | def UpdateCompileCommands(): |
| 79 | print(">>> Updating compile_commands.json...") |
no test coverage detected