[cmake-developers] toolset Clang 3.7 with Microsoft CodeGen (v140_clang_3_7) debug is broken
forumer at smartmobili.com
forumer at smartmobili.com
Mon May 2 14:17:17 EDT 2016
Hi,
Don't know if it's the best place to report it but I am testing nightly
builds(3.5.20160429) to generate some projects
for Visual Studio 2015 and the clang toolset now provided by Microsoft.
There is one problem when using debug configurations because we cannot
debug generated executables.
I have found some changes that seems to be necessary to be able to
debug, here are the changes I have found:
1) DebugInformationFormat should be set FullDebug, AdditionalOptions
MUST BE removed and optimizations must be disabled
<ClCompile>
... REMOVE AdditionalOptions ...
<DebugInformationFormat>FullDebug</DebugInformationFormat>
...
<Optimization>Disabled</Optimization>
<OmitFramePointers>false</OmitFramePointers>
</ClCompile>
2)GenerateDebugInformation must be set to true and ProgramDataBaseFile
must be empty because clang doesn't use pdb for now
<Link>
...
<GenerateDebugInformation>true</GenerateDebugInformation>
...
<ProgramDataBaseFile>
</ProgramDataBaseFile>
</Link>
Thanks
More information about the cmake-developers
mailing list