Chromium Code Reviews| Index: tools/gn/ninja_helper.cc |
| diff --git a/tools/gn/ninja_helper.cc b/tools/gn/ninja_helper.cc |
| index 65e06c08025cea806293c30ef62cd1f461731469..5e42dc8089bfe2cabd5931ca95ec24187d93373a 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/"; |
|
scottmg
2013/08/05 12:24:48
heh
|
| const char kObjectDirNoSlash[] = "obj"; |
| } // namespace |
| @@ -116,11 +116,11 @@ OutputFile NinjaHelper::GetTargetOutputFile(const Target* target) const { |
| // This is prepended to the output file name. |
| const char* prefix; |
| - if (target->settings()->IsWin()) { |
| - prefix = ""; |
| - } else { |
| + if (!target->settings()->IsWin() && |
| + target->output_type() == Target::SHARED_LIBRARY) |
| prefix = "lib"; |
| - } |
| + else |
| + prefix = ""; |
| const char* extension; |
| if (target->output_type() == Target::NONE || |