[cmake-developers] [PATCH] Don't use /ZmXXXX for MSVC11+
Adam Moss
adam at broadcom.com
Thu Nov 15 08:31:09 EST 2012
/Zm1000 considered harmful in VS2012 (this is probably true of >=VS2005 - but I've erred on the side of leaving things alone for configurations I haven't tested.)
Only use /Zm on MSVC versions older than 11.
This was making each compiler instance reserve around 750MB immediately, which in a parallel build would make some or all of the spawned compilers crash depending on system memory pressure.
See: http://msdn.microsoft.com/en-us/library/bdscwf1c.aspx
Cheers,
--Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20121115/d584b4f2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winzm-fix.patch
Type: application/octet-stream
Size: 1867 bytes
Desc: winzm-fix.patch
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20121115/d584b4f2/attachment-0002.obj>
More information about the cmake-developers
mailing list