msvc writer: Don't die on generated_file() and create_bundle() targets. Change-Id: I82c9cb8838f65aa7369bcee161617d0f8e84c079 Bug: chromium:1059666 Reviewed-on: https://gn-review.googlesource.com/c/gn/+/7600 Commit-Queue: Nico Weber <thakis@chromium.org> Commit-Queue: Brett Wilson <brettw@chromium.org> Reviewed-by: Brett Wilson <brettw@chromium.org>
diff --git a/src/gn/visual_studio_writer.cc b/src/gn/visual_studio_writer.cc index dd09055..fd16536 100644 --- a/src/gn/visual_studio_writer.cc +++ b/src/gn/visual_studio_writer.cc
@@ -351,10 +351,12 @@ for (const Target* target : targets) { // Skip actions and bundle targets. - if (target->output_type() == Target::COPY_FILES || - target->output_type() == Target::ACTION || + if (target->output_type() == Target::ACTION || target->output_type() == Target::ACTION_FOREACH || - target->output_type() == Target::BUNDLE_DATA) { + target->output_type() == Target::BUNDLE_DATA || + target->output_type() == Target::COPY_FILES || + target->output_type() == Target::CREATE_BUNDLE || + target->output_type() == Target::GENERATED_FILE) { continue; }