summaryrefslogtreecommitdiff
path: root/Source/cmNinjaNormalTargetGenerator.h
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-06-14 14:15:16 +0200
committerPeter Kuemmel <syntheticpp@gmx.net>2012-06-14 14:22:56 +0200
commit654608600474a27eeddafd50ea25c7e3882fd460 (patch)
treeb666e0b55bbc137f5d631504cec812136607e854 /Source/cmNinjaNormalTargetGenerator.h
parent220fdc16fc577feb3401a44eea475dae119257b0 (diff)
downloadcmake-654608600474a27eeddafd50ea25c7e3882fd460.tar.gz
Ninja: don't use shell when cmake is called directly
When linking with cmake and vs_link_* the command line could be too long for cmd.exe, which needs not to be called in this case. (was not cached by a test) Introduce rules which don't use the shell and use this rule when there are no pre or post step. For free we get a small speedup, because cmd is then not called. Also be more accurate when estimating the command line length.
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.h')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.h b/Source/cmNinjaNormalTargetGenerator.h
index 1ef95675b9..299b3e15f8 100644
--- a/Source/cmNinjaNormalTargetGenerator.h
+++ b/Source/cmNinjaNormalTargetGenerator.h
@@ -30,7 +30,7 @@ private:
std::string LanguageLinkerRule() const;
const char* GetVisibleTypeName() const;
void WriteLanguagesRules();
- void WriteLinkRule(bool useResponseFile);
+ void WriteLinkRule(const std::string& postfix = "");
void WriteLinkStatement();
void WriteObjectLibStatement();
std::vector<std::string> ComputeLinkCmd();