How do I utilise all the cores for nmake?
2017-02-25 18:32
330 查看
1
According to MSDN, there’s no such option for nmake.You can however make the compiler build multiple files in parallel by using the
/MPoption with the VC++ command line compiler and passing multiple files at the same time:
cl /MP a.cpp b.cpp c.cpp
However note that most Makefiles don’t call the compiler like this - they usual invoke the compiler separate for each individual source file, which would prevent the
/MPoption from doing anything useful.
2
Another generic, non-Qt-related way to tell nmake to use all the cores is to set environmental variable CL to /MP:set CL=/MP nmake
will use all the CPU cores.
原文:
How do I utilise all the cores for nmake?‘NMake Makefiles’ generate does not support parallel builds (/MP)?
相关文章推荐
- How do you query all columns and all tables for a specific string
- How do I set the default schema for a user in MySQL
- How_do_I_use_the_same_pkg_file_for_debug_and_release_builds(转)
- ChipScope - For the ChipScope flows, how do you get the signal names into the Analyzer without manually adding them?
- How do I find the PublicKeyToken for a particular dll?
- How do I set the timeout for a JAX-WS webservice client? if you want to set timeouts for specific se
- How To List All The Named Events Set For A Database
- How do I iterate over a Scala List (or more generally, a sequence) using theforeach method or for loop?
- How To List All The Named Events Set For A Database [ID 436036.1]
- How To List All The Named Events Set For A Database [ID 436036.1]
- How to rebuild rdoc for all the installed gems?
- How do I love thee? Let me count the ways
- Here's an example that shows how to enumerate through the features of a selection set, returning the value of each field in the attribute table except for the geometry colum.
- How do I love thee
- Some tips for grammar 'For all Entries' in the ABAP
- "How Do I?" Videos for Devices
- How do I love thee
- How to Apply the J2ME Polish GUI for Existing Applications
- How Do use the ImageButton in DataGrid...
- Just do nothing, smile in the dream and waiting for the sun raising.