|
|
@ -550,11 +550,11 @@ class Compiler: |
|
|
|
def get_exelist(self): |
|
|
|
def get_exelist(self): |
|
|
|
return self.exelist[:] |
|
|
|
return self.exelist[:] |
|
|
|
|
|
|
|
|
|
|
|
def get_define(self, *args, **kwargs): |
|
|
|
def get_builtin_define(self, *args, **kwargs): |
|
|
|
raise EnvironmentException('%s does not support get_define.' % self.id) |
|
|
|
raise EnvironmentException('%s does not support get_builtin_define.' % self.id) |
|
|
|
|
|
|
|
|
|
|
|
def has_define(self, *args, **kwargs): |
|
|
|
def has_builtin_define(self, *args, **kwargs): |
|
|
|
raise EnvironmentException('%s does not support has_define.' % self.id) |
|
|
|
raise EnvironmentException('%s does not support has_builtin_define.' % self.id) |
|
|
|
|
|
|
|
|
|
|
|
def get_always_args(self): |
|
|
|
def get_always_args(self): |
|
|
|
return [] |
|
|
|
return [] |
|
|
@ -2382,10 +2382,10 @@ class GnuCompiler: |
|
|
|
args[args.index('-Wpedantic')] = '-pedantic' |
|
|
|
args[args.index('-Wpedantic')] = '-pedantic' |
|
|
|
return args |
|
|
|
return args |
|
|
|
|
|
|
|
|
|
|
|
def has_define(self, define): |
|
|
|
def has_builtin_define(self, define): |
|
|
|
return define in self.defines |
|
|
|
return define in self.defines |
|
|
|
|
|
|
|
|
|
|
|
def get_define(self, define): |
|
|
|
def get_builtin_define(self, define): |
|
|
|
if define in self.defines: |
|
|
|
if define in self.defines: |
|
|
|
return self.defines[define] |
|
|
|
return self.defines[define] |
|
|
|
|
|
|
|
|
|
|
@ -2896,10 +2896,10 @@ class GnuFortranCompiler(FortranCompiler): |
|
|
|
self.defines = defines or {} |
|
|
|
self.defines = defines or {} |
|
|
|
self.id = 'gcc' |
|
|
|
self.id = 'gcc' |
|
|
|
|
|
|
|
|
|
|
|
def has_define(self, define): |
|
|
|
def has_builtin_define(self, define): |
|
|
|
return define in self.defines |
|
|
|
return define in self.defines |
|
|
|
|
|
|
|
|
|
|
|
def get_define(self, define): |
|
|
|
def get_builtin_define(self, define): |
|
|
|
if define in self.defines: |
|
|
|
if define in self.defines: |
|
|
|
return self.defines[define] |
|
|
|
return self.defines[define] |
|
|
|
|
|
|
|
|
|
|
|