Skip to content

#[link_args] should support runs of spaces #15487

Closed
@o11c

Description

@o11c

The following uses should work, but currently fail because the linker can't load a file whose name is the empty string.

#[link_args = "-lc "] extern {}
#[link_args = " -lc"] extern {}
#[link_args = "-lm  -lc"] extern {}

Splitting on spaces was introduced in #6192

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions