[CMake] INTERPROCEDURAL_OPTIMIZATION still not using CMAKE_<LANG>_COMPILER_AR

Clément Gregoire lectem at gmail.com
Sat Aug 12 03:28:52 EDT 2017


Should I file a bug report for this?

Le mar. 1 août 2017 à 22:52, Brad King <brad.king at kitware.com> a écrit :

> On 07/22/2017 07:33 AM, lectem at gmail.com wrote:
> > So I downloaded the 3.9 release and thought my LTO nightmares we over but
> > cmake still isn't using CMAKE_<LANG>_COMPILER_AR when linking on MSYS.
>
> The problem is that this code:
>
>
> https://gitlab.kitware.com/cmake/cmake/blob/v3.9.0/Modules/Platform/Windows-GNU.cmake#L117-127
>
> inserts use of the archiver into the main linking process as a way
> to work around Windows command-line length limits.  Since it is
> using the archiver as part of linking instead of just for creating
> a static library, our logic to switch to CMAKE_<LANG>_COMPILER_AR
> for LTO is not triggering.
>
> -Brad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170812/f947e32c/attachment.html>


More information about the CMake mailing list