<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span class="gmail-">On 09/23/2016 06:47 AM, Domen Vrankar wrote:<br>
> I have rpm tests failing on dashboard [1] and it would seem that PGI compiler<br>
> is missing --build-id flag by default which can be added [2]<br>
><br>
</span><span class="gmail-">> Is this default behavior (missing --build-id flag) intended or simply missing from CMake?<br>
><br>
> I'm guessing that this is a linker option (or do I also need a compiler flag?) so how do<br>
> I add it only for this compiler? Which|CMAKE_CXX_COMPILER_ID value should I compare<br>
> to or should I use a different CMake variable?<br>
<br>
</span>Is this flag needed in general or only for your test?<br></blockquote><div><br></div><div>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...<br></div><div>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).<br><br></div><div>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.<br><br></div><div>Thanks,<br></div><div>Domen<br></div></div></div></div>