Skip to content

[clang][driver] -S and -c are incompatible after #101103 when using Werror, even without -fsyntax-only  #104347

Closed as not planned
@ilovepi

Description

@ilovepi

After #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 comands result 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

Metadata

Metadata

Assignees

Labels

clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions