Should I file a bug report for this? <br><br><div class="gmail_quote"><div dir="ltr">Le mar. 1 août 2017 à 22:52, Brad King <<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 07/22/2017 07:33 AM, <a href="mailto:lectem@gmail.com" target="_blank">lectem@gmail.com</a> wrote:<br>
> So I downloaded the 3.9 release and thought my LTO nightmares we over but<br>
> cmake still isn't using CMAKE_<LANG>_COMPILER_AR when linking on MSYS.<br>
<br>
The problem is that this code:<br>
<br>
  <a href="https://gitlab.kitware.com/cmake/cmake/blob/v3.9.0/Modules/Platform/Windows-GNU.cmake#L117-127" rel="noreferrer" target="_blank">https://gitlab.kitware.com/cmake/cmake/blob/v3.9.0/Modules/Platform/Windows-GNU.cmake#L117-127</a><br>
<br>
inserts use of the archiver into the main linking process as a way<br>
to work around Windows command-line length limits.  Since it is<br>
using the archiver as part of linking instead of just for creating<br>
a static library, our logic to switch to CMAKE_<LANG>_COMPILER_AR<br>
for LTO is not triggering.<br>
<br>
-Brad<br>
</blockquote></div>