summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r--Source/cmLocalGenerator.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index a61def9..af5b35e 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -67,6 +67,15 @@ enum class cmBuildStep
Link
};
+/** What compilation mode the swift files are in */
+enum class cmSwiftCompileMode
+{
+ Wholemodule,
+ Incremental,
+ Singlefile,
+ Unknown,
+};
+
/** Target and source file which have a specific output. */
struct cmSourcesWithOutput
{
@@ -549,6 +558,10 @@ public:
const std::string& prop,
const std::string& config);
+ // Return Swift_COMPILATION_MODE value if CMP0157 is NEW.
+ cm::optional<cmSwiftCompileMode> GetSwiftCompileMode(
+ cmGeneratorTarget const* target, std::string const& config);
+
protected:
// The default implementation converts to a Windows shortpath to
// help older toolchains handle spaces and such. A generator may