Skip to content

lld ignores other arguments when -V is passed #57859

@luke-jr

Description

@luke-jr

lld -V <anything> results in the expected behaviour of -V with everything else ignored, exiting with 0.

It appears GNU ld will run -V and then proceed as normal with the rest of the command line. cmake appears to (sometimes?) rely on this behaviour presently (cmake issue 23969).

I'm not sure if lld wants to imitate ld's behaviour or this is a works-as-intended.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions