| 2385 | } |
| 2386 | |
| 2387 | std::string cmMakefileTargetGenerator::GetResponseFlag( |
| 2388 | ResponseFlagFor mode) const |
| 2389 | { |
| 2390 | std::string responseFlag = "@"; |
| 2391 | std::string responseFlagVar; |
| 2392 | |
| 2393 | auto const lang = |
| 2394 | this->GeneratorTarget->GetLinkerLanguage(this->GetConfigName()); |
| 2395 | if (mode == cmMakefileTargetGenerator::ResponseFlagFor::Link) { |
| 2396 | responseFlagVar = cmStrCat("CMAKE_", lang, "_RESPONSE_FILE_LINK_FLAG"); |
| 2397 | } else if (mode == cmMakefileTargetGenerator::ResponseFlagFor::DeviceLink) { |
| 2398 | responseFlagVar = "CMAKE_CUDA_RESPONSE_FILE_DEVICE_LINK_FLAG"; |
| 2399 | } |
| 2400 | |
| 2401 | if (cmValue const p = this->Makefile->GetDefinition(responseFlagVar)) { |
| 2402 | responseFlag = *p; |
| 2403 | } |
| 2404 | return responseFlag; |
| 2405 | } |
no test coverage detected