Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On Monday 23 of April 2012, Tor Lillqvist wrote:
Unfortunately, at least the Apple Clang doesn't generate any
compilation error or *proper* warning for command-line options it
doesn't understand, like -fno-enforce-eh-specs.

It just prints out clang: warning: argument unused during compilation:
'-fno-enforce-eh-specs' to stderr... Even with -Werror, this is just
printed, it doesn't cause the compilation to exit with failure.

 That's a wee bit broken. And not just with my commit, but in general, there 
are other configure checks that test whether an option is supported or not, 
just grep configure.in for -Werror.

So probably configure should check if this warning is printed to
stderr when checking what command-line options are supported?

 That does not quite work, e.g. the message can be translated.

 But the bug seems to exists only with Clang < 3.1, so the problem can be 
worked around by checking for such versions and overriding all results of 
such checks to values manually found out.

-- 
 Lubos Lunak
 l.lunak@suse.cz

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.