|
|
|
@ -597,7 +597,7 @@ class CompilerHolder(InterpreterObject): |
|
|
|
|
'find_library': self.find_library_method, |
|
|
|
|
'has_argument' : self.has_argument_method, |
|
|
|
|
'first_supported_argument' : self.first_supported_argument_method, |
|
|
|
|
'get_unittest_flag' : self.get_unittest_flag_method, |
|
|
|
|
'unittest_args' : self.unittest_args_method, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
def version_method(self, args, kwargs): |
|
|
|
@ -651,11 +651,11 @@ class CompilerHolder(InterpreterObject): |
|
|
|
|
def get_id_method(self, args, kwargs): |
|
|
|
|
return self.compiler.get_id() |
|
|
|
|
|
|
|
|
|
def get_unittest_flag_method(self, args, kwargs): |
|
|
|
|
def unittest_args_method(self, args, kwargs): |
|
|
|
|
# At time, only D compilers have this feature. |
|
|
|
|
if not getattr(self.compiler, "get_unittest_flag", None): |
|
|
|
|
return '' |
|
|
|
|
return self.compiler.get_unittest_flag() |
|
|
|
|
if not hasattr(self.compiler, 'get_unittest_args'): |
|
|
|
|
raise InterpreterException('This {} compiler has no unittest arguments.'.format(self.compiler.language)) |
|
|
|
|
return self.compiler.get_unittest_args() |
|
|
|
|
|
|
|
|
|
def has_member_method(self, args, kwargs): |
|
|
|
|
if len(args) != 2: |
|
|
|
|