Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: tools/gn/ninja_toolchain_writer.cc

Issue 1386783003: [GN]: Support for loadable modules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/gn/ninja_toolchain_writer.cc
diff --git a/tools/gn/ninja_toolchain_writer.cc b/tools/gn/ninja_toolchain_writer.cc
index c22fb2c43527d04cd92d2d71138df06441941be3..e7459ebb3cfa2ede1e0d5303aedfdf0b36e134b2 100644
--- a/tools/gn/ninja_toolchain_writer.cc
+++ b/tools/gn/ninja_toolchain_writer.cc
@@ -109,8 +109,11 @@ void NinjaToolchainWriter::WriteToolRule(const Toolchain::ToolType type,
// The link pool applies to linker tools. Don't count TYPE_ALINK since
// static libraries are not generally intensive to write.
- if (type == Toolchain::TYPE_SOLINK || type == Toolchain::TYPE_LINK)
+ if (type == Toolchain::TYPE_SOLINK ||
+ type == Toolchain::TYPE_SOLINK_MODULE ||
+ type == Toolchain::TYPE_LINK) {
out_ << kIndent << "pool = link_pool\n";
+ }
if (tool->restat())
out_ << kIndent << "restat = 1" << std::endl;

Powered by Google App Engine
This is Rietveld 408576698