3 Commits

Author SHA1 Message Date
Fangrui Song
6461e53781 [Driver] Don't claim -c/-S
Remove the TODO I left in commit
a07b135ce0c0111bd83450b5dc29ef0381cdbc39.

We will now warn about `-c/-S` with `-fsyntax-only`. This relands #98607
with a specific target triple.
2024-07-23 21:57:21 -07:00
dyung
b5f23e5690
Revert "[Clang][Driver] Warn about -c/-S with -fsyntax-only" (#100052)
Reverts llvm/llvm-project#98607

The test added was failing on some build bots:
- https://lab.llvm.org/buildbot/#/builders/144/builds/2918
- https://lab.llvm.org/buildbot/#/builders/46/builds/2069
2024-07-22 19:06:54 -07:00
Dmitry Chestnykh
1efcc532ba
[Clang][Driver] Warn about -c/-S with -fsyntax-only (#98607)
Emit warning that `-S` and/or `-c` arguments are not used if
`-fsyntax-only` is also passed to clang
`addPGOAndCoverageFlags` is not the right place
to produce this warning
Now `-fsyntax-only -c/-S` combination handles like `-fsyntax-only -E` in
`BuildJobs()` driver function
2024-07-23 01:15:53 +03:00