Issue 143665
Summary [clang] `-fembed-bitcode` is incompatible with some compilation flags and their negations
Labels clang
Assignees
Reporter romainthomas
    Hello there,

The commit https://github.com/llvm/llvm-project/commit/51313bc6d97d32b39c20c2b5c913e9b023967835 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?

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to