Skip to content

Commit d4e3734

Browse files
committed
build: perform build of genfiles in parallel before updates (#2200)
Build all of the generated file targets before running the update command to allow the targets to be build in parallel. PR Close #2200
1 parent edbe420 commit d4e3734

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/update-generated-files.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ if (queryProcess.status !== 0) {
3131

3232
const updateTargets = queryProcess.stdout.trim().split(/\r?\n/);
3333

34+
// Build all of the targets in parallel.
35+
spawnSync(bazelPath, ['build', updateTargets.join(' ')], {...spawnOptions, stdio: 'inherit'});
36+
3437
for (const targetName of updateTargets) {
3538
const proc = spawnSync(bazelPath, ['run', targetName], {...spawnOptions, stdio: 'inherit'});
3639
if (proc.status !== 0) {

0 commit comments

Comments
 (0)