diff options
author | Brad King <brad.king@kitware.com> | 2024-01-05 18:30:33 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-01-05 18:31:09 (GMT) |
commit | ac9fd4f00939d181ee9df503415695019f900c7d (patch) | |
tree | 2c9007c72757ff8c67e1e2b8f82f065916619835 /Source | |
parent | 7058d715b424162e493c154381300d8e47331605 (diff) | |
parent | 1161ad76ac569a38ad767d98ea7c5963a076696a (diff) | |
download | CMake-ac9fd4f00939d181ee9df503415695019f900c7d.zip CMake-ac9fd4f00939d181ee9df503415695019f900c7d.tar.gz CMake-ac9fd4f00939d181ee9df503415695019f900c7d.tar.bz2 |
Merge topic 'swift-always-restat'
1161ad76ac Swift/Ninja: Always restat swift build commands
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9076
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 2ea893d..bc75a95 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -1950,6 +1950,10 @@ void cmNinjaTargetGenerator::WriteSwiftObjectBuildStatement( this->LanguageCompilerRule(language, config, WithScanning::No)); cmNinjaVars& vars = objBuild.Variables; + // The swift toolchain leaves outputs untouched if there are no meaningful + // changes to input files (e.g. addition of a comment). + vars.emplace("restat", "1"); + std::string const moduleName = getTargetPropertyOrDefault(target, "Swift_MODULE_NAME", target.GetName()); std::string const moduleDirectory = getTargetPropertyOrDefault( |