[cmake-developers] Linux PGI compiler missing --build-id flag by default

Domen Vrankar domen.vrankar at gmail.com
Fri Sep 23 09:01:02 EDT 2016


> On 09/23/2016 06:47 AM, Domen Vrankar wrote:
> > I have rpm tests failing on dashboard [1] and it would seem that PGI
> compiler
> > is missing --build-id flag by default which can be added [2]
> >
> > Is this default behavior (missing --build-id flag) intended or simply
> missing from CMake?
> >
> > I'm guessing that this is a linker option (or do I also need a compiler
> flag?) so how do
> > I add it only for this compiler? Which|CMAKE_CXX_COMPILER_ID value
> should I compare
> > to or should I use a different CMake variable?
>
> Is this flag needed in general or only for your test?
>

This is mandatory for rpm debug info packages but as far as I can tell it
only serves for easier identification of binaries/shared libs for debugging
and dump analysis...
I was wondering if this is mandatory on Linux since I didn't even know
until today that this option exists (seems to always be set with gcc/clang).

If nobody else is missing this flag I'll just add the flag in
'if(CMAKE_CXX_COMPILER_ID MATCHES "PGI")' block for this test for now and
explain it in CPackRPM docs.

Thanks,
Domen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160923/57538121/attachment.html>


More information about the cmake-developers mailing list