Issue |
104347
|
Summary |
[clang][driver] -S and -c are incompatible after #101103 when using Werror, even without -fsyntax-only
|
Labels |
clang
|
Assignees |
|
Reporter |
ilovepi
|
After https://github.com/llvm/llvm-project/pull/101103, `-S` and `-c` options seem to be incompatible when using -Werror. This doesn't seem to be intentional, from what I can tell.
The following program results in `clang: error: argument unused during compilation: '-c' [-Werror,-Wunused-command-line-argument]`
```
touch foo.c
~/llvm-project/build/bin/clang -S -O0 -Werror -c .foo.c -o foo.c.o
```
CC: @MaskRay
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs