summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-28 15:49:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-05-28 15:50:28 (GMT)
commitda0937c04fe8cb167a55a1e37cf275d24a262fa7 (patch)
tree3b00c937b45e6b4c0d30c13e56c2247c9105e10e /Source
parent56fec2fe8f7014abb5677fd4fca03fa208c498e8 (diff)
parent9e5457d3b4f5c46028c29d731f4057e3fa76415a (diff)
downloadCMake-da0937c04fe8cb167a55a1e37cf275d24a262fa7.zip
CMake-da0937c04fe8cb167a55a1e37cf275d24a262fa7.tar.gz
CMake-da0937c04fe8cb167a55a1e37cf275d24a262fa7.tar.bz2
Merge topic 'swift-response'
9e5457d3b4 Ninja,Swift: correct response file handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3367
Diffstat (limited to 'Source')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 1e4d2ed..77af45e 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -321,7 +321,11 @@ void cmNinjaNormalTargetGenerator::WriteLinkRule(bool useResponseFile)
rspcontent = "$in_newline";
}
rspcontent += " $LINK_PATH $LINK_LIBRARIES";
- vars.Objects = responseFlag.c_str();
+ if (this->TargetLinkLanguage == "Swift") {
+ vars.SwiftSources = responseFlag.c_str();
+ } else {
+ vars.Objects = responseFlag.c_str();
+ }
vars.LinkLibraries = "";
}