diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-09-17 13:33:27 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-09-24 12:14:13 -0700 |
commit | 98416e7f755dc9d660349556400363e734ac7828 (patch) | |
tree | 8c919837fc05fab0f7f6a1ca8827acb9304ecc06 /mesonbuild/compilers/compilers.py | |
parent | 02658fdda47f537cff3f52c7e1a97b0ae2d3525b (diff) | |
download | meson-98416e7f755dc9d660349556400363e734ac7828.zip meson-98416e7f755dc9d660349556400363e734ac7828.tar.gz meson-98416e7f755dc9d660349556400363e734ac7828.tar.bz2 |
compilers: put name_string method in base compiler
Every language had the exact same implementation
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index fd2d081..44922eb 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1044,6 +1044,9 @@ class Compiler(metaclass=abc.ABCMeta): def get_has_func_attribute_extra_args(self, name: str) -> T.List[str]: raise EnvironmentException('{} does not support function attributes'.format(self.id)) + def name_string(self) -> str: + return ' '.join(self.exelist) + def get_args_from_envvars(lang: str, for_machine: MachineChoice, |