commit | 5a47a93b94266326aef8cd6deffe920f4217a31c | [log] [tgz] |
---|---|---|
author | Takuto Ikuta <tikuta@google.com> | Thu Nov 21 14:18:23 2024 +0900 |
committer | GN LUCI <gn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 22 02:31:13 2024 +0000 |
tree | 3e9186d8ee60b062d68f5f0985efdce528487bb2 | |
parent | 24e92acb847233a9c0753c12cb82c98fc084e3db [diff] |
fix exit code for gn gen failure Bug: 380158551 Change-Id: I325b42d9366f6dc6772545f4bd5de25641e859d6 Reviewed-on: https://gn-review.googlesource.com/c/gn/+/17920 Reviewed-by: Dirk Pranke <dpranke@google.com> Reviewed-by: David Turner <digit@google.com> Commit-Queue: Takuto Ikuta <tikuta@google.com>
diff --git a/src/gn/command_gen.cc b/src/gn/command_gen.cc index c05ecd6..cf1851e 100644 --- a/src/gn/command_gen.cc +++ b/src/gn/command_gen.cc
@@ -760,7 +760,7 @@ // regeneration can be restarted if interrupted. if (command_line->HasSwitch(switches::kRegeneration)) { if (!commands::PrepareForRegeneration(&setup->build_settings())) { - return false; + return 1; } }