Skip to content

Linker Parsing: overhaul rsp pass#37

Merged
scheibelp merged 1 commit into
spack:mainfrom
johnwparent:parse-rsp-in-place
May 20, 2026
Merged

Linker Parsing: overhaul rsp pass#37
scheibelp merged 1 commit into
spack:mainfrom
johnwparent:parse-rsp-in-place

Conversation

@johnwparent
Copy link
Copy Markdown
Collaborator

We were failing to properly handle rsp files. We should not be handling them as files or storing them, instead we should parse them, extract their contents, parse that as if it was passed on the command line, and then compose that into additional rsp files if neccesary. Before we were just extracting the rsp contents, not parsing them as if they were supplied as part of the cli, which was incorrect.

Further, RSP files may be one very long line instead of many lines like how CMake generates them. Handle that case as well.

We were failing to properly handle rsp files. We should not be handling them as files or storing them, instead we should parse them, extract their contents, parse that as if it was passed on the command line, and then compose that into additional rsp files if neccesary.
Before we were just extracting the rsp contents, not parsing them as if they were supplied as part of the cli, which was incorrect.

Further, RSP files may be one very long line instead of many lines like how CMake generates them. Handle that case as well.

Signed-off-by: John Parent <john.parent@kitware.com>
@scheibelp scheibelp merged commit 33b5b0e into spack:main May 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants