Ninja,Makefile: Unify command line limit logic

Move the logic to cmSystemTools to be shared among the generators.
Revise the implementation and add comments justifying each possible
source for a limit.
This commit is contained in:
Christian Pfeiffer
2017-04-18 23:06:39 +02:00
committed by Brad King
parent ddd2b02455
commit bbb5c3efe2
5 changed files with 50 additions and 55 deletions

View File

@@ -253,6 +253,8 @@ public:
static void ParseUnixCommandLine(const char* command,
std::vector<std::string>& args);
static size_t CalculateCommandLineLengthLimit();
static void EnableMessages() { s_DisableMessages = false; }
static void DisableMessages() { s_DisableMessages = true; }
static void DisableRunCommandOutput() { s_DisableRunCommandOutput = true; }