llvm-project
llvm-project copied to clipboard
Add support to -Wa,-W in clang
| Bugzilla Link | 43651 |
| Resolution | FIXED |
| Resolved on | Oct 21, 2019 11:28 |
| Version | trunk |
| OS | Linux |
| CC | @MaskRay,@zygoloid |
Extended Description
Currently clang does not support -Wa,-W.
$ cat test.c
int main () {return 0;} $ clang -Wa,-W test.c clang: error: unsupported argument '-W' to option 'Wa,'
From man page of GNU as:
-W
--no-warn
Suppress warning messages.
We need this option for gcc compability.
https://reviews.llvm.org/D68884
def massembler_no_warn : Flag<["-"], "massembler-no-warn">, 205: HelpText<"Make assembler not emit warnings">; Seems we could simply add -W as an alis for this option in llvm.
assigned to @jcai19