summaryrefslogtreecommitdiff
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorFelipe Torrezan <felipe.torrezan@iar.com>2022-11-21 13:11:40 +0100
committerBrad King <brad.king@kitware.com>2022-11-21 10:29:24 -0500
commitb1a3a38e0370ded5e1fc1ce3d3ba2433cad5d684 (patch)
tree13975d92ac09ceaa1363acb9722f01905e19a3bd /Source/cmMakefileTargetGenerator.cxx
parenta0dbfb99aacff122fd2807554f711f0456687693 (diff)
downloadcmake-b1a3a38e0370ded5e1fc1ce3d3ba2433cad5d684.tar.gz
Makefiles: Name object response files with .rsp extension
This is more consistent with the Ninja generator, and is necessary for the IAR linker to recognize the argument as a response file. Fixes: #24165
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index c5c5490335..766e9f9032 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -2249,6 +2249,7 @@ void cmMakefileTargetGenerator::CreateObjectLists(
std::string responseFileName =
(responseMode == Link) ? "objects" : "deviceObjects";
responseFileName += std::to_string(i + 1);
+ responseFileName += ".rsp";
// Create this response file.
std::string objects_rsp = this->CreateResponseFile(