summaryrefslogtreecommitdiff
path: root/Source/cmcmd.h
diff options
context:
space:
mode:
authorThomas Bernard <tbernard@go-engineering.de>2020-01-14 11:31:34 +0100
committerBrad King <brad.king@kitware.com>2020-02-04 08:19:12 -0500
commit1c2d031cbdbf28f99ef36e5db5e4d9de1b97fff9 (patch)
treeb987d5cf32bdf9b094f830e0e7c91112709301c8 /Source/cmcmd.h
parent5f04dfe57ebf1abee29101228844ebaa721356a2 (diff)
downloadcmake-1c2d031cbdbf28f99ef36e5db5e4d9de1b97fff9.tar.gz
Add -E cmake_llvm_rc to preprocess files for llvm-rc
llvm-rc requires preprocessed rc files. The CMake command line tool cmake_llvm_rc enables channing the preprocessor call and the resource compiler and make this appear as single compilation step. When llvm-rc is detected as resource compiler, the RC compilation step is set to use this command.
Diffstat (limited to 'Source/cmcmd.h')
-rw-r--r--Source/cmcmd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmcmd.h b/Source/cmcmd.h
index 17f2f9a529..5b6c81333c 100644
--- a/Source/cmcmd.h
+++ b/Source/cmcmd.h
@@ -31,6 +31,9 @@ protected:
static int ExecuteLinkScript(std::vector<std::string> const& args);
static int WindowsCEEnvironment(const char* version,
const std::string& name);
+ static int RunPreprocessor(const std::vector<std::string>& command,
+ const std::string& intermediate_file);
+ static int RunLLVMRC(std::vector<std::string> const& args);
static int VisualStudioLink(std::vector<std::string> const& args, int type);
};