Skip to content

Feature request: support setting asm-specific flags #751

@nicholasbishop

Description

@nicholasbishop

Background: clang fails with an error if you pass asm options when compiling a non-asm input. For example:

$ clang -c foo.S -Wa,-defsym,abc=0
(no error!)

$ clang -c foo.c -Wa,-defsym,abc=0
error: unknown argument: '-defsym'

It would be helpful to have a Build::asm_flag method for adding flags specific to compiling assembly. The flags passed in this way would only be added to the command for .S/.asm files.

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