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

Unified Diff: tools/gn/command_desc.cc

Issue 1530183005: Special-case paths that appear in libs by not prefixing them with -l. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo in previous patch Created 5 years 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 | « tools/gn/BUILD.gn ('k') | tools/gn/config_values.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/command_desc.cc
diff --git a/tools/gn/command_desc.cc b/tools/gn/command_desc.cc
index 3f2bbaf51fb15b23ad9d3545eb46d1a4164de7ee..d920f2cfd9b3602f580a1c30866e68652f4a2623 100644
--- a/tools/gn/command_desc.cc
+++ b/tools/gn/command_desc.cc
@@ -169,7 +169,7 @@ void PrintLibDirs(const Target* target, bool display_header) {
}
void PrintLibs(const Target* target, bool display_header) {
- const OrderedSet<std::string>& libs = target->all_libs();
+ const OrderedSet<LibFile>& libs = target->all_libs();
if (libs.empty())
return;
@@ -177,7 +177,7 @@ void PrintLibs(const Target* target, bool display_header) {
OutputString("\nlibs\n");
for (size_t i = 0; i < libs.size(); i++)
- OutputString(" " + libs[i] + "\n");
+ OutputString(" " + libs[i].value() + "\n");
}
void PrintPublic(const Target* target, bool display_header) {
« no previous file with comments | « tools/gn/BUILD.gn ('k') | tools/gn/config_values.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698