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

Unified Diff: tools/gn/function_toolchain.cc

Issue 493493004: Add GN substitution support for Ninja's $in_newline (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 4 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
« no previous file with comments | « no previous file | tools/gn/substitution_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/function_toolchain.cc
diff --git a/tools/gn/function_toolchain.cc b/tools/gn/function_toolchain.cc
index 4f99778139851c44591edd024722f76d20e1dddf..a0bb9a909307db38d9c3212215f863a255dbd054 100644
--- a/tools/gn/function_toolchain.cc
+++ b/tools/gn/function_toolchain.cc
@@ -575,10 +575,17 @@ const char kTool_Help[] =
" The following expansions are available:\n"
"\n"
" {{inputs}}\n"
+ " {{inputs_newline}}\n"
" Expands to the inputs to the link step. This will be a list of\n"
" object files and static libraries.\n"
" Example: \"obj/foo.o obj/bar.o obj/somelibrary.a\"\n"
"\n"
+ " The \"_newline\" version will separate the input files with\n"
+ " newlines instead of spaces. This is useful in response files:\n"
+ " some linkers can take a \"-filelist\" flag which expects newline\n"
+ " separated files, and some Microsoft tools have a fixed-sized\n"
+ " buffer for parsing each line of a response file.\n"
+ "\n"
" {{ldflags}}\n"
" Expands to the processed set of ldflags and library search paths\n"
" specified for the target.\n"
« no previous file with comments | « no previous file | tools/gn/substitution_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698