Skip to content

Commit

Permalink
feat: allow only running gn gen in build (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jun 14, 2024
1 parent 2f67e10 commit ff3e40a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/e-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ program
.arguments('[target] [ninjaArgs...]')
.description('Build Electron and other targets.')
.option('--list-targets', 'Show all supported build targets', false)
.option('--gen', 'Force a re-run of `gn gen` before building', false)
.option('--only-gen', 'Only run `gn gen`', false)
.option('-t|--target [target]', 'Forces a specific ninja target')
.option('--no-remote', 'Build without remote execution (entirely locally)')
.allowUnknownOption()
Expand All @@ -114,8 +114,9 @@ program
}
}

if (options.gen) {
if (options.onlyGen) {
runGNGen(config);
return;
}

if (options.target) {
Expand Down

0 comments on commit ff3e40a

Please sign in to comment.