Skip to content

(Visual Studio) Cannot reliably set C++ flags in template without including a .cpp file #17

@richardeakin

Description

@richardeakin

When trying to adjust the compiler flags in the vc2013 project templates (specifically so that /Gm is disabled, which prohibits /MP), I noticed that there is no section for setting compiler flags when opening up the template .vcxproj file. This seems to be because the template doesn't add a .cpp file as source, apparently this is done by TinderBox itself.

As a workaround, I tried temporarily adding a .cpp file, adjusting the settings, then removing it and saving the .vcxproj file, but I don't believe this had an effect. In current master branch (0.9.1-dev), creating a project with tinderbox still yields the unfortunate "Command line warning D9030: '/Gm' is incompatible with multiprocessing; ignoring /MP switch" that we've been trying to overcome.

I don't know if there is some way to manually modify the .vcxproj file to disable /Gm, or if it would work out to somehow account for there being a .cpp file within the template.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions