Skip to content

clang_Driver_getExternalActionsForCommand_v0 does not expand response files #10441

Open
@cwakamo

Description

@cwakamo

clang_Driver_getExternalActionsForCommand_v0 exists as a function to get a list of actions that would be performed given a set of clang driver arguments. However, it does not currently expand response files, which is a difference between it and the real clang driver.

This means that response files get treated as inputs, I believe, and passed on to other actions. (For instance, a response file with -Wl,<arg> gets passed as-is to the linker, which causes it to fail because the linker doesn't understand -Wl.)

clang_Driver_getExternalActionsForCommand_v0 should be updated to expand response files.

Activity

self-assigned this
on Apr 7, 2025
cwakamo

cwakamo commented on Apr 7, 2025

@cwakamo
Author

Snagging this because it should be relatively straightforward.

added a commit that references this issue on Apr 13, 2025
88f3fb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @cwakamo

    Issue actions

      clang_Driver_getExternalActionsForCommand_v0 does not expand response files · Issue #10441 · swiftlang/llvm-project