summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileExecutableTargetGenerator.cxx
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2022-06-01 13:20:08 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2022-06-13 18:56:58 (GMT)
commit6377a43814bb6f3087b731644bb61302a3fc3c55 (patch)
tree8fbf509f2d3d05d74e1b72a4095dcd898a826c37 /Source/cmMakefileExecutableTargetGenerator.cxx
parent87273cc9d3b7073a1c175f73b241be16b566b47c (diff)
downloadCMake-6377a43814bb6f3087b731644bb61302a3fc3c55.zip
CMake-6377a43814bb6f3087b731644bb61302a3fc3c55.tar.gz
CMake-6377a43814bb6f3087b731644bb61302a3fc3c55.tar.bz2
CUDA: Support response files with nvcc
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileExecutableTargetGenerator.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx
index 3849c6f..74574f7 100644
--- a/Source/cmMakefileExecutableTargetGenerator.cxx
+++ b/Source/cmMakefileExecutableTargetGenerator.cxx
@@ -182,14 +182,16 @@ void cmMakefileExecutableTargetGenerator::WriteNvidiaDeviceExecutableRule(
// Collect up flags to link in needed libraries.
std::string linkLibs;
- this->CreateLinkLibs(linkLineComputer.get(), linkLibs,
- useResponseFileForLibs, depends);
+ this->CreateLinkLibs(
+ linkLineComputer.get(), linkLibs, useResponseFileForLibs, depends,
+ cmMakefileTargetGenerator::ResponseFlagFor::DeviceLink);
// Construct object file lists that may be needed to expand the
// rule.
std::string buildObjs;
- this->CreateObjectLists(useLinkScript, false, useResponseFileForObjects,
- buildObjs, depends, false);
+ this->CreateObjectLists(
+ useLinkScript, false, useResponseFileForObjects, buildObjs, depends,
+ false, cmMakefileTargetGenerator::ResponseFlagFor::DeviceLink);
cmRulePlaceholderExpander::RuleVariables vars;
std::string objectDir = this->GeneratorTarget->GetSupportDirectory();