mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
CUDA: Don't use module definition .def files for device linking
These files are meaningful only to the host linker.
This commit is contained in:
committed by
Brad King
parent
728820f3ea
commit
05dbc940b7
@@ -157,15 +157,6 @@ void cmMakefileExecutableTargetGenerator::WriteDeviceExecutableRule(
|
||||
this->LocalGenerator->AppendFlags(
|
||||
linkFlags, this->GeneratorTarget->GetProperty(linkFlagsConfig));
|
||||
|
||||
{
|
||||
CM_AUTO_PTR<cmLinkLineComputer> linkLineComputer(
|
||||
this->CreateLinkLineComputer(
|
||||
this->LocalGenerator,
|
||||
this->LocalGenerator->GetStateSnapshot().GetDirectory()));
|
||||
|
||||
this->AddModuleDefinitionFlag(linkLineComputer.get(), linkFlags);
|
||||
}
|
||||
|
||||
// Construct a list of files associated with this executable that
|
||||
// may need to be cleaned.
|
||||
std::vector<std::string> exeCleanFiles;
|
||||
|
||||
@@ -663,7 +663,6 @@ void cmNinjaNormalTargetGenerator::WriteDeviceLinkStatement()
|
||||
|
||||
this->addPoolNinjaVariable("JOB_POOL_LINK", &genTarget, vars);
|
||||
|
||||
this->AddModuleDefinitionFlag(linkLineComputer.get(), vars["LINK_FLAGS"]);
|
||||
vars["LINK_FLAGS"] =
|
||||
cmGlobalNinjaGenerator::EncodeLiteral(vars["LINK_FLAGS"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user