summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-18 14:34:26 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-11-18 14:34:35 (GMT)
commit1cefd1da95ebecfbb3082d4ff4dd00f93be43bf1 (patch)
tree79393f581e955ca6661ea27bab6feaa14d50cf1b /Source
parent72af27279bafa27607ec1db8f52c4597de31a465 (diff)
parent38c8807c5ac5cdc7c8d5f6ff48b521b0a2e3c81c (diff)
downloadCMake-1cefd1da95ebecfbb3082d4ff4dd00f93be43bf1.zip
CMake-1cefd1da95ebecfbb3082d4ff4dd00f93be43bf1.tar.gz
CMake-1cefd1da95ebecfbb3082d4ff4dd00f93be43bf1.tar.bz2
Merge topic 'ninja-swiftmodule-no-exe'
38c8807c5a Ninja: Avoid re-linking a Swift executable on every build Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7901
Diffstat (limited to 'Source')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 895a4c3..21409d7 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -1112,7 +1112,9 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement(
this->GetObjectFilePath(source, config));
}
}
- linkBuild.Outputs.push_back(vars["SWIFT_MODULE"]);
+ if (targetType != cmStateEnums::EXECUTABLE) {
+ linkBuild.Outputs.push_back(vars["SWIFT_MODULE"]);
+ }
} else {
linkBuild.ExplicitDeps = this->GetObjects(config);
}