On 07/22/2017 07:33 AM, lec...@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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to