summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-06-14 23:43:08 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-06-14 23:43:08 (GMT)
commitf13a6a087e3f882b496ab34c12cc7777795a5c2f (patch)
tree066b0826fb9de8745052447f8ee1ef65d8262d3a /Source/cmLocalNinjaGenerator.cxx
parent555bda4e436435c37690aa5f31f4d254793d5b4e (diff)
downloadCMake-f13a6a087e3f882b496ab34c12cc7777795a5c2f.zip
CMake-f13a6a087e3f882b496ab34c12cc7777795a5c2f.tar.gz
CMake-f13a6a087e3f882b496ab34c12cc7777795a5c2f.tar.bz2
Ninja: undo all the NOSHELL patches
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx13
1 files changed, 2 insertions, 11 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index 71f0913..5d193cd 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -264,14 +264,6 @@ void cmLocalNinjaGenerator::AppendCustomCommandDeps(const cmCustomCommand *cc,
}
}
-std::string cmLocalNinjaGenerator::nopCommand() const {
-#ifdef _WIN32
- return "cd .";
-#else
- return ":";
-#endif
-}
-
std::string cmLocalNinjaGenerator::BuildCommandLine(
const std::vector<std::string> &cmdLines)
{
@@ -280,10 +272,9 @@ std::string cmLocalNinjaGenerator::BuildCommandLine(
// don't use POST_BUILD.
if (cmdLines.empty())
#ifdef _WIN32
- return "";
+ return "cd.";
#else
- // TODO use _NOSHELL rule also on Linux
- return nopCommand();
+ return ":";
#endif
std::ostringstream cmd;