clang: unknown warning option #1606
I did this
The Travis CI debug builds on Mac shows a warning that an unknown warning is used:
I expected the following
No compiler warnings on unknown options used
Ah, this is not Linux, this is Mac OS. This Apple clang identifies itself as version 7.3.0, while clang trunk is currently 5.0. Since 7.0, it doesn't give any info about which clang version it's based on anymore.
I'm already looking into that, but as I'm not a Mac user myself, I probably can't maintain a separate Apple clang version list.
Given that every clang was treated as version 4.2.1 until recently, maybe we could just treat every new Apple clang version as the latest version the Apple clang version string contained the actual clang version (3.6 in XCode 6.4)? I guess we don't have access to the operating system used in the m4 scripts easily?
Iterating over the options and try which ones that work is also probably a bit complicated since it doesn't seem to exit or properly signal for unknown warning options, other than that message on stderr and it feels error-prone to grep for that!
It's there in the
Yes, I think that's a decent default work-around, then we can add support for the specific mac-clangs we know support newer options. The latest mac compiler does support -Wcomma though!
My dev mac has the latest OS and xcode installed I think:
referenced this issue
Jun 22, 2017
For future reference, here's a gist with this info: https://gist.github.com/epipping/ef8b02b0cfaec4a5ebf3a57092145a3f by @epipping