mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
CUDA: Populate compiler PDB placeholder during device linking
The device link step runs the host compiler internally so we need to use the proper compiler PDB file with MSVC.
This commit is contained in:
@@ -366,12 +366,18 @@ void cmMakefileLibraryTargetGenerator::WriteDeviceLibraryRules(
|
||||
this->LocalGenerator->GetCurrentBinaryDirectory(), targetOutputReal),
|
||||
output);
|
||||
|
||||
std::string targetFullPathCompilePDB = this->ComputeTargetCompilePDB();
|
||||
std::string targetOutPathCompilePDB =
|
||||
this->LocalGenerator->ConvertToOutputFormat(targetFullPathCompilePDB,
|
||||
cmOutputConverter::SHELL);
|
||||
|
||||
vars.Objects = buildObjs.c_str();
|
||||
vars.ObjectDir = objectDir.c_str();
|
||||
vars.Target = target.c_str();
|
||||
vars.LinkLibraries = linkLibs.c_str();
|
||||
vars.ObjectsQuoted = buildObjs.c_str();
|
||||
vars.LinkFlags = linkFlags.c_str();
|
||||
vars.TargetCompilePDB = targetOutPathCompilePDB.c_str();
|
||||
|
||||
// Add language feature flags.
|
||||
std::string langFlags;
|
||||
|
||||
Reference in New Issue
Block a user