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

Unified Diff: tools/gn/ninja_helper.cc

Issue 21983003: Make the Mac build work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dunnow Created 7 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 | « tools/gn/ninja_build_writer.cc ('k') | tools/gn/ninja_target_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/ninja_helper.cc
diff --git a/tools/gn/ninja_helper.cc b/tools/gn/ninja_helper.cc
index 65e06c08025cea806293c30ef62cd1f461731469..c3d275bc51e73aa1bf831f9ce43d59548bc5e11a 100644
--- a/tools/gn/ninja_helper.cc
+++ b/tools/gn/ninja_helper.cc
@@ -11,7 +11,7 @@
namespace {
-const char kLibDirWithSlash[] = "lib";
+const char kLibDirWithSlash[] = "lib/";
const char kObjectDirNoSlash[] = "obj";
} // namespace
@@ -116,7 +116,8 @@ OutputFile NinjaHelper::GetTargetOutputFile(const Target* target) const {
// This is prepended to the output file name.
const char* prefix;
- if (target->settings()->IsWin()) {
+ if (target->settings()->IsWin() ||
+ target->output_type() == Target::EXECUTABLE) {
prefix = "";
} else {
prefix = "lib";
« no previous file with comments | « tools/gn/ninja_build_writer.cc ('k') | tools/gn/ninja_target_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698