tb01070 / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

MultiProcessorCompilation (/MP) not supported in GYP for MS Visual Studio Projects #452

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add the following to a gyp file to set multi-processor compilation.
        'msvs_settings': {
          'VCCLCompilerTool': {
            'MultiProcessorCompilation': 'true',
          },
        },
2. Process the gyp file to create a Visual Studio 2012 project

What is the expected output? What do you see instead?
Expected: The project is created and the /MP option is set and works in Visual 
Studio or MSBuild.

Currently you see the following warning
"Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation while 
converting to MSBuild."

What version of the product are you using? On what operating system?
Microsoft Visual Studio 2012. GYP revision 1876

Please provide any additional information below.
I have attached a patch that seems to address the issue. I think this option is 
supported in both VS and MSBuild since VS 2008 but am not sure, so backward 
compatibility could be an issue.

Original issue reported on code.google.com by jmay...@google.com on 3 Sep 2014 at 9:53

Attachments: