Index: tools/gn/ninja_target_writer.cc |
diff --git a/tools/gn/ninja_target_writer.cc b/tools/gn/ninja_target_writer.cc |
index 098a58cb956da36210b3cd632efb01b05ebfba58..7c168ea7271be364fd3b6d08005aa72f37d541ab 100644 |
--- a/tools/gn/ninja_target_writer.cc |
+++ b/tools/gn/ninja_target_writer.cc |
@@ -68,13 +68,14 @@ void NinjaTargetWriter::RunAndWriteFile(const Target* target) { |
NinjaGroupTargetWriter writer(target, file); |
writer.Run(); |
} else if (target->output_type() == Target::EXECUTABLE || |
+ target->output_type() == Target::LOADABLE_MODULE || |
target->output_type() == Target::STATIC_LIBRARY || |
target->output_type() == Target::SHARED_LIBRARY || |
target->output_type() == Target::SOURCE_SET) { |
NinjaBinaryTargetWriter writer(target, file); |
writer.Run(); |
} else { |
- CHECK(0); |
+ CHECK(0) << "Output type of target not handled."; |
} |
std::string contents = file.str(); |