Skip to content

Commit

Permalink
vcxproj: added handler for MultiProcessorCompilation (/MP)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelliavonau committed Jun 9, 2020
1 parent 4e6daf3 commit 85e9c4d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmake_converter/visual_studio/vcxproj/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def __init__(self):
self.flags_handlers = OrderedDict([
# compilation cl_flags
('ConformanceMode', self.__set_conformance_mode),
('MultiProcessorCompilation', self.__multi_processor_compilation),
('SupportJustMyCode', self.__set_support_just_my_code),
('LanguageStandard', self.__set_language_standard),
('UseDebugLibraries', self.__set_use_debug_libraries),
Expand Down Expand Up @@ -553,6 +554,19 @@ def __set_conformance_mode(context, flag_name, conformance_mode_node):
}
return flag_values

@staticmethod
def __multi_processor_compilation(context, flag_name, flag_value):
"""
Set MultiProcessorCompilation /MP
"""
del context, flag_name, flag_value
flag_values = {
'true': {cl_flags: '/MP'},
default_value: {}
}
return flag_values

@staticmethod
def __set_language_standard(context, flag_name, language_standard_node):
"""
Expand Down

0 comments on commit 85e9c4d

Please sign in to comment.