[PATCH] Enable building LTO on WIN32

Greg_Bedwell at sn.scee.net Greg_Bedwell at sn.scee.net
Fri Sep 27 13:18:28 PDT 2013


I've attached a patch which enables building the LTO library (.lib and 
.dll) and llvm-lto.exe on Windows with MSVC and Mingw as well as 
re-enabling the associated test.  I've left the Cygwin behaviour disabled, 
purely because I was unable to build LLVM in the first place using cygwin 
and CMake despite spending many hours trying.  I don't see why there's any 
reason why, in theory, this change won't also work for Cygwin but as I'm 
unable to test it I've been conservative and left the behaviour disabled 
in that case.  I've verified that the dll is exporting the correct symbols 
specified in the .def file in both the MSVC and MinGW cases.


I'd be grateful for any feedback.  If it looks okay, please commit for me 
as I don't yet have commit access.


--Greg Bedwell
SN Systems - Sony Computer Entertainment Group

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify postmaster at scee.net
This footnote also confirms that this email message has been checked for 
all known viruses.
Sony Computer Entertainment Europe Limited
Registered Office: 10 Great Marlborough Street, London W1F 7LP, United 
Registered in England: 3277793

P Please consider the environment before printing this e-mail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enable-LTO-on-Windows.patch
Type: application/octet-stream
Size: 2244 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130927/b69f2531/attachment.obj>

More information about the llvm-commits mailing list