diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-01-12 00:36:49 (GMT) |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-01-15 17:13:33 (GMT) |
commit | b90e6134a7af7d6f81a410fac52f17c7585509eb (patch) | |
tree | 4b5ee320cbfcbb59df1aff3eb177ca139d3a30a5 /Source/cmRulePlaceholderExpander.cxx | |
parent | d4a42dd4a87c9caa222a7a40150db937258698d2 (diff) | |
download | CMake-b90e6134a7af7d6f81a410fac52f17c7585509eb.zip CMake-b90e6134a7af7d6f81a410fac52f17c7585509eb.tar.gz CMake-b90e6134a7af7d6f81a410fac52f17c7585509eb.tar.bz2 |
Ninja: add new placeholder `SWIFT_AUXILIARY_SOURCES`
The swift compilation model requires all sources for the module to be
listed for the compiler to type check across them. Provide a
placeholder to allow enumerating the remainder of the swift sources in a
target for the language compile rule.
Issue: #18800
Diffstat (limited to 'Source/cmRulePlaceholderExpander.cxx')
-rw-r--r-- | Source/cmRulePlaceholderExpander.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmRulePlaceholderExpander.cxx b/Source/cmRulePlaceholderExpander.cxx index 0dfb797..4b74ff0 100644 --- a/Source/cmRulePlaceholderExpander.cxx +++ b/Source/cmRulePlaceholderExpander.cxx @@ -162,6 +162,11 @@ std::string cmRulePlaceholderExpander::ExpandRuleVariable( } } } + if (replaceValues.SwiftAuxiliarySources) { + if (variable == "SWIFT_AUXILIARY_SOURCES") { + return replaceValues.SwiftAuxiliarySources; + } + } if (variable == "TARGET_SONAME" || variable == "SONAME_FLAG" || variable == "TARGET_INSTALLNAME_DIR") { // All these variables depend on TargetSOName |