bkaradzic / GENie

GENie - Project generator tool
Other
898 stars 166 forks source link

Disable specific vs2017 options. JMC ( Just My Code Debuging ) to OFF. #392

Open kretash opened 5 years ago

kretash commented 5 years ago

Hi,

There probably is functionality to do this, but I can't figure it out.

I'm working with a C++ and LLVM toolset using VS2017. In order to compile successfully using vs2017 and llvm in debug mode I need to turn off JMC.

Is there a way to turn this off from the project config? Would it be a good idea to disable it automatically when the toolset is llvm as it's not supported?

Thank you,

bkaradzic commented 5 years ago

I don't know what JMC is, but if it's some compiler/linker option you can set it by buildoptions and linkoptions: https://github.com/bkaradzic/GENie/blob/master/docs/scripting-reference.md#buildoptionsoptions https://github.com/bkaradzic/GENie/blob/master/docs/scripting-reference.md#linkoptionsoptions

kretash commented 5 years ago

2018-11-19 11_06_17-octi-windows-app - microsoft visual studio

I saw that, from my understanding you can add options with them, but not disable them?

The .sln generated has this enabled by default.

bkaradzic commented 5 years ago

Generate project file, make copy, and then disable option save it, and diff it. And post here what changed.

kretash commented 5 years ago

It adds <SupportJustMyCode>false</SupportJustMyCode> inside <ClCompile> for the <ItemDefinitionGroup> used for the debug configuration.

I only care about turning this off when using LLVM as it has no support for it and it wont compile.

This are both project files. GeneratedProjectFiles.zip

Thank you