Wireshark mailing list archives
Re: cmake giving options the compiler does not understand
From: Guy Harris <guy () alum mit edu>
Date: Thu, 2 Jan 2014 16:30:14 -0800
On Jan 2, 2014, at 4:21 PM, Joerg Mayer <jmayer () loplof de> wrote:
On Thu, Jan 02, 2014 at 03:16:17PM -0800, Guy Harris wrote:But, if that's the case, was it cached when a compiler that *does* support -Wshorten-64-to-32 was used, and then a *different* compiler was used? (Building in a directory stored on a file server can make this more likely to happen, as you might be building on machine A and then re-building on machine B without clearing out all the stuff left around by the configure-and-build on machine A.)I will change the cmake tests to run separately for c and c++ - if I read the commits correctly you did this for autotools already. I (and thus the code) currently assume that the c and c++ compiler are from the same "source".
Even if they're from the same source, they might not accept the same flags. In *most* cases, that's an indication that you have a mismatched C-compiler/C++-compiler pair, and the autoconf script reports it as such with a warning, but, in two cases, it's expected - one compiler might accept -Wmissing-prototypes or -Wmissing-declarations when the other doesn't. Are we really encountering a case where the C compiler accepts -Wshorten-64-to-32 but the C++ compiler doesn't, or *vice versa*? Or are we encountering a case where *neither* compiler accepts it, but CMake isn't detecting that? ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- cmake giving options the compiler does not understand Jeff Morriss (Jan 02)
- Re: cmake giving options the compiler does not understand Alexis La Goutte (Jan 02)
- Re: cmake giving options the compiler does not understand Guy Harris (Jan 02)
- Re: cmake giving options the compiler does not understand Jeff Morriss (Jan 02)
- Re: cmake giving options the compiler does not understand Guy Harris (Jan 02)
- Re: cmake giving options the compiler does not understand Jeff Morriss (Jan 02)
- Re: cmake giving options the compiler does not understand Guy Harris (Jan 02)
- Re: cmake giving options the compiler does not understand Joerg Mayer (Jan 02)
- Re: cmake giving options the compiler does not understand Guy Harris (Jan 02)
- Re: cmake giving options the compiler does not understand Joerg Mayer (Jan 02)
- Re: cmake giving options the compiler does not understand Jeff Morriss (Jan 03)
- Re: cmake giving options the compiler does not understand Jeff Morriss (Jan 04)
- Re: cmake giving options the compiler does not understand Joerg Mayer (Jan 04)
- Re: cmake giving options the compiler does not understand Jeff Morriss (Jan 04)
- Re: cmake giving options the compiler does not understand Guy Harris (Jan 04)
- Re: cmake giving options the compiler does not understand Jeff Morriss (Jan 05)
- Re: cmake giving options the compiler does not understand Guy Harris (Jan 05)
- Re: cmake giving options the compiler does not understand Jeff Morriss (Jan 08)
- Re: cmake giving options the compiler does not understand Alexis La Goutte (Jan 02)