Cleanup MSVC warning flags for clang-cl
Categories
(Firefox Build System :: General, enhancement)
Tracking
(firefox67 fixed)
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: glandium, Assigned: away)
References
(Depends on 1 open bug)
Details
Attachments
(3 files)
I suspect these may have been cargo-culted from elsewhere.
We only need -Wno-sign-compare, which we can add regardless of compiler because clang-cl understands it natively in addition to the -wdNNNN form.
Comment 3•6 years ago
|
||
bugherder |
Comment 4•6 years ago
|
||
bugherder |
clang-cl only acts on five MSVC warning flags: https://github.com/llvm/llvm-project/blob/7219c7e9af7718f026ac5e3ea72249d037898e5b/clang/include/clang/Driver/CLCompatOptions.td#L188-L197
With MSVC now unsupported, most -wdNNNN have no effect and can be removed.
This patch converts the five supported warnings to their clang spellings, as preparation for a subsequent patch that will remove all remaining [/-]w[edo][0-9]{4}
.
Per the previous patch, clang-cl only understands five MSVC-style warning flags: https://github.com/llvm/llvm-project/blob/7219c7e9af7718f026ac5e3ea72249d037898e5b/clang/include/clang/Driver/CLCompatOptions.td#L188-L197
This patch removes the flags that clang-cl doesn't understand.
Comment 8•6 years ago
|
||
bugherder |
Comment 10•6 years ago
|
||
bugherder |
Description
•