summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-08 13:01:50 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-04-08 13:01:50 (GMT)
commit2369f19a7a2fceacad32e137f1eb61bebcf9c608 (patch)
tree154896e85728761486bca702a909714131c47276 /Source/cmNinjaNormalTargetGenerator.cxx
parent2f76effd0a8fd7bb25941891ca9603d27f1c571f (diff)
parent7731e44f87ca9f70335f211a4ef64a1ea68c7f10 (diff)
downloadCMake-2369f19a7a2fceacad32e137f1eb61bebcf9c608.zip
CMake-2369f19a7a2fceacad32e137f1eb61bebcf9c608.tar.gz
CMake-2369f19a7a2fceacad32e137f1eb61bebcf9c608.tar.bz2
Merge topic 'ninja-object-rsp'
7731e44f Ninja: Honor CMAKE_NINJA_FORCE_RESPONSE_FILE for compile rules f9644a2d cmGlobalNinjaGenerator: Clarify logic for forcing use of response files 24c9106b cmNinjaTargetGenerator: Factor out helper for forced response file check
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index c34df3c..322f37d 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -697,10 +697,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
cmGlobalNinjaGenerator& globalGen = *this->GetGlobalGenerator();
- int commandLineLengthLimit = 1;
- const char* forceRspFile = "CMAKE_NINJA_FORCE_RESPONSE_FILE";
- if (!mf->IsDefinitionSet(forceRspFile) &&
- cmSystemTools::GetEnv(forceRspFile) == 0)
+ int commandLineLengthLimit = -1;
+ if (!this->ForceResponseFile())
{
commandLineLengthLimit = calculateCommandLineLengthLimit(
globalGen.GetRuleCmdLength(this->LanguageLinkerRule()));