From cmake Mon Jul 27 16:13:16 2015 From: Andreas Pakulat Date: Mon, 27 Jul 2015 16:13:16 +0000 To: cmake Subject: Re: [CMake] Packaging debug symbol files on Windows Message-Id: X-MARC-Message: https://marc.info/?l=cmake&m=143801360429185 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1224584006==" --===============1224584006== Content-Type: multipart/alternative; boundary=001a11357970a0263f051bdda1ae --001a11357970a0263f051bdda1ae Content-Type: text/plain; charset=UTF-8 Hi Nils, On Mon, Jul 27, 2015 at 3:58 PM, Nils Gladitz 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 --001a11357970a0263f051bdda1ae Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Nils,

On Mon, Jul 27, 2015 at 3:58 PM, Nils Gladitz <= ;nilsgladitz@gma= il.com> wrote:
On 07/= 27/2015 03:46 PM, Andreas Pakulat wrote:
I've meanwhile also noticed that the default compiler flags that CMake<= br> 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 "RelWithDebI= nfo" use /Zi (debug information in external pdb) rather than /Z7 (embe= dded debug information; no pdb is generated).

Maybe your project replaces the default flags?

<= div>No Z7 or Zi anywhere in the CMake files and the generated makefiles inc= lude /Zi. So I don't know why the dll's would be bigger and generat= e proper backtrace information when analyzing a dump file but so it is and = thats fine with me for now.

Andreas
--001a11357970a0263f051bdda1ae-- --===============1224584006== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- 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 --===============1224584006==--