summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-07-13 11:43:22 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-07-13 11:45:11 (GMT)
commit37915a69304d0de36e15b024380a7ddabeb0d821 (patch)
tree120ba7494aaf4e0f2a1de4a7d59ad94c1fb56a98
parente5c762d32d8a1329aac66a66eaf634a009cb288b (diff)
parent4ef0eedb496cd60a9fa9c9f51e02e167c8a1e64a (diff)
downloadCMake-37915a69304d0de36e15b024380a7ddabeb0d821.zip
CMake-37915a69304d0de36e15b024380a7ddabeb0d821.tar.gz
CMake-37915a69304d0de36e15b024380a7ddabeb0d821.tar.bz2
Merge topic 'ninja-dyndep-response-file'
4ef0eedb Ninja: always use response file for cmake_ninja_dyndep Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1038
-rw-r--r--Source/cmNinjaTargetGenerator.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 7c57ef0..79191ec 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -557,17 +557,11 @@ void cmNinjaTargetGenerator::WriteCompileRule(const std::string& lang)
// Write the rule for ninja dyndep file generation.
std::vector<std::string> ddCmds;
-#ifdef _WIN32
- // Windows command line length is limited -> use response file for dyndep
- // rules
+ // Command line length is almost always limited -> use response file for
+ // dyndep rules
std::string ddRspFile = "$out.rsp";
std::string ddRspContent = "$in";
std::string ddInput = "@" + ddRspFile;
-#else
- std::string ddRspFile;
- std::string ddRspContent;
- std::string ddInput = "$in";
-#endif
// Run CMake dependency scanner on preprocessed output.
std::string const cmake = this->GetLocalGenerator()->ConvertToOutputFormat(