aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-06-27 04:12:48 -0400
committerGitHub <noreply@github.com>2017-06-27 04:12:48 -0400
commite630d899daf34cea5dcb74182861824904fbab10 (patch)
treece6529cf8b908dadcab76f5f3f6fe98c70a97818 /mesonbuild/compilers/compilers.py
parent80ebc916f78ad736494ffee49f100134954acc2c (diff)
parentbbddf51a5425799564e7c8ede4456feb59537357 (diff)
downloadmeson-e630d899daf34cea5dcb74182861824904fbab10.zip
meson-e630d899daf34cea5dcb74182861824904fbab10.tar.gz
meson-e630d899daf34cea5dcb74182861824904fbab10.tar.bz2
Merge pull request #2004 from valum-framework/add-display-language
More usages of 'get_display_language' and a fix for C#
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 2321093..a200c07 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -622,28 +622,28 @@ class Compiler:
return []
def has_header(self, *args, **kwargs):
- raise EnvironmentException('Language %s does not support header checks.' % self.language)
+ raise EnvironmentException('Language %s does not support header checks.' % self.get_display_language())
def has_header_symbol(self, *args, **kwargs):
- raise EnvironmentException('Language %s does not support header symbol checks.' % self.language)
+ raise EnvironmentException('Language %s does not support header symbol checks.' % self.get_display_language())
def compiles(self, *args, **kwargs):
- raise EnvironmentException('Language %s does not support compile checks.' % self.language)
+ raise EnvironmentException('Language %s does not support compile checks.' % self.get_display_language())
def links(self, *args, **kwargs):
- raise EnvironmentException('Language %s does not support link checks.' % self.language)
+ raise EnvironmentException('Language %s does not support link checks.' % self.get_display_language())
def run(self, *args, **kwargs):
- raise EnvironmentException('Language %s does not support run checks.' % self.language)
+ raise EnvironmentException('Language %s does not support run checks.' % self.get_display_language())
def sizeof(self, *args, **kwargs):
- raise EnvironmentException('Language %s does not support sizeof checks.' % self.language)
+ raise EnvironmentException('Language %s does not support sizeof checks.' % self.get_display_language())
def alignment(self, *args, **kwargs):
- raise EnvironmentException('Language %s does not support alignment checks.' % self.language)
+ raise EnvironmentException('Language %s does not support alignment checks.' % self.get_display_language())
def has_function(self, *args, **kwargs):
- raise EnvironmentException('Language %s does not support function checks.' % self.language)
+ raise EnvironmentException('Language %s does not support function checks.' % self.get_display_language())
@classmethod
def unix_args_to_native(cls, args):
@@ -651,7 +651,7 @@ class Compiler:
return args[:]
def find_library(self, *args, **kwargs):
- raise EnvironmentException('Language {} does not support library finding.'.format(self.language))
+ raise EnvironmentException('Language {} does not support library finding.'.format(self.get_display_language()))
def get_library_dirs(self):
return []
@@ -662,7 +662,7 @@ class Compiler:
def has_multi_arguments(self, args, env):
raise EnvironmentException(
'Language {} does not support has_multi_arguments.'.format(
- self.language))
+ self.get_display_language()))
def get_cross_extra_flags(self, environment, link):
extra_flags = []
@@ -753,7 +753,7 @@ class Compiler:
def get_link_whole_for(self, args):
if isinstance(args, list) and not args:
return []
- raise EnvironmentException('Language %s does not support linking whole archives.' % self.language)
+ raise EnvironmentException('Language %s does not support linking whole archives.' % self.get_display_language())
def build_unix_rpath_args(self, build_dir, from_dir, rpath_paths, install_rpath):
if not rpath_paths and not install_rpath: