[CMake] Packaging debug symbol files on Windows

J Decker d3ck0r at gmail.com
Mon Jul 27 19:57:15 EDT 2015


Debug also adds padding between functions and stack checking which can
significantly add to code size for smaller libraries...  or libraries with
lots of tiny functions.

On Mon, Jul 27, 2015 at 9:13 AM, Andreas Pakulat <apaku at gmx.de> wrote:

> Hi Nils,
>
> On Mon, Jul 27, 2015 at 3:58 PM, Nils Gladitz <nilsgladitz at gmail.com>
> wrote:
>
>> On 07/27/2015 03:46 PM, Andreas Pakulat wrote:
>>
>>> I've meanwhile also noticed that the default compiler flags that CMake
>>> uses include the debug information in the dll itself (dll size is
>>> doubled), so for now don't even have to have the separate pdb files
>>> packaged anymore (in this case the pdb info is small enough to just keep
>>> in the dll).
>>>
>>
>> I am not entirely sure what you mean but CMake's default flags for the
>> Visual Studio compiler when building "Debug" or "RelWithDebInfo" use /Zi
>> (debug information in external pdb) rather than /Z7 (embedded debug
>> information; no pdb is generated).
>>
>> Maybe your project replaces the default flags?
>
>
> No Z7 or Zi anywhere in the CMake files and the generated makefiles
> include /Zi. So I don't know why the dll's would be bigger and generate
> proper backtrace information when analyzing a dump file but so it is and
> thats fine with me for now.
>
> Andreas
>
> --
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150727/b3dd402a/attachment.html>


More information about the CMake mailing list