소스 검색

CUDA: Don't use module definition `.def` files for device linking

These files are meaningful only to the host linker.
Robert Maynard 8 년 전
부모
커밋
05dbc940b7
2개의 변경된 파일0개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 9
      Source/cmMakefileExecutableTargetGenerator.cxx
  2. 0 1
      Source/cmNinjaNormalTargetGenerator.cxx

+ 0 - 9
Source/cmMakefileExecutableTargetGenerator.cxx

@@ -157,15 +157,6 @@ void cmMakefileExecutableTargetGenerator::WriteDeviceExecutableRule(
   this->LocalGenerator->AppendFlags(
   this->LocalGenerator->AppendFlags(
     linkFlags, this->GeneratorTarget->GetProperty(linkFlagsConfig));
     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
   // Construct a list of files associated with this executable that
   // may need to be cleaned.
   // may need to be cleaned.
   std::vector<std::string> exeCleanFiles;
   std::vector<std::string> exeCleanFiles;

+ 0 - 1
Source/cmNinjaNormalTargetGenerator.cxx

@@ -663,7 +663,6 @@ void cmNinjaNormalTargetGenerator::WriteDeviceLinkStatement()
 
 
   this->addPoolNinjaVariable("JOB_POOL_LINK", &genTarget, vars);
   this->addPoolNinjaVariable("JOB_POOL_LINK", &genTarget, vars);
 
 
-  this->AddModuleDefinitionFlag(linkLineComputer.get(), vars["LINK_FLAGS"]);
   vars["LINK_FLAGS"] =
   vars["LINK_FLAGS"] =
     cmGlobalNinjaGenerator::EncodeLiteral(vars["LINK_FLAGS"]);
     cmGlobalNinjaGenerator::EncodeLiteral(vars["LINK_FLAGS"]);