mirror of https://gitlab.com/ita1024/waf.git
Issue 1237
This commit is contained in:
parent
3b699e3fed
commit
67b8e27c34
|
@ -1001,9 +1001,8 @@ def exec_command_msvc(self, *k, **kw):
|
||||||
|
|
||||||
def wrap_class(class_name):
|
def wrap_class(class_name):
|
||||||
"""
|
"""
|
||||||
Dynamically subclass the indicated task type, to guarantee correct
|
Manifest file processing and @response file workaround for command-line length limits on Windows systems
|
||||||
bubble-up method override behavior nomatter how many times the
|
The indicated task class is replaced by a subclass to prevent conflicts in case the class is wrapped more than once
|
||||||
msvc.py code is imported.
|
|
||||||
"""
|
"""
|
||||||
cls = Task.classes.get(class_name, None)
|
cls = Task.classes.get(class_name, None)
|
||||||
|
|
||||||
|
@ -1014,7 +1013,7 @@ def wrap_class(class_name):
|
||||||
|
|
||||||
def exec_command(self, *k, **kw):
|
def exec_command(self, *k, **kw):
|
||||||
if self.env['CC_NAME'] == 'msvc':
|
if self.env['CC_NAME'] == 'msvc':
|
||||||
return exec_command_msvc(self, *k, **kw)
|
return self.exec_command_msvc(*k, **kw)
|
||||||
else:
|
else:
|
||||||
return super(derived_class, self).exec_command(*k, **kw)
|
return super(derived_class, self).exec_command(*k, **kw)
|
||||||
|
|
||||||
|
@ -1025,6 +1024,7 @@ def wrap_class(class_name):
|
||||||
# base class API
|
# base class API
|
||||||
derived_class.exec_response_command = exec_response_command
|
derived_class.exec_response_command = exec_response_command
|
||||||
derived_class.quote_response_command = quote_response_command
|
derived_class.quote_response_command = quote_response_command
|
||||||
|
derived_class.exec_command_msvc = exec_command_msvc
|
||||||
derived_class.exec_mf = exec_mf
|
derived_class.exec_mf = exec_mf
|
||||||
|
|
||||||
return derived_class
|
return derived_class
|
||||||
|
|
Loading…
Reference in New Issue