Skip to content

[clang] -fembed-bitcode is incompatible with some compilation flags and their negations #143665

Open
@romainthomas

Description

@romainthomas

Hello there,

The commit 51313bc authored by @compnerd in 2018 introduced errors when using -fembed-bitcode with a set of flags.

I can understand why we should prevent using some of these flags with the embedded bitcode but
I don't understand why in some cases we prevent a flag and its negation:

For instance:

# Error 
$ clang -fembed-bitcode -ffunction-sections

# Error 
$ clang -fembed-bitcode -fno-function-sections

# Ok
$ clang -fembed-bitcode 

Shouldn't we relax the conditions on the -fno- flags?

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions