diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2019-11-25 12:05:19 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2019-12-12 09:35:32 -0800 |
| commit | 7460e4ccda339d167402bd077dcaa364fab5e172 (patch) | |
| tree | 0926cbc0b7970b4b9de20b6801d6aba51efa712d /mesonbuild/compilers/fortran.py | |
| parent | ee6e249f659cd4658ae2f1a425d4aa01585c23aa (diff) | |
| download | meson-7460e4ccda339d167402bd077dcaa364fab5e172.tar.gz | |
compilers: Make get_display_language a class or static method
Currently this is done at the instance level, but we need it at the
class level to allow compiler "lang" args to be gotten early enough.
This patch also removes a couple of instance of branch/leaf classes
providing their own implementation that is identical to the Compiler
version.
Diffstat (limited to 'mesonbuild/compilers/fortran.py')
| -rw-r--r-- | mesonbuild/compilers/fortran.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py index 607d7a5f3..4aff72e9e 100644 --- a/mesonbuild/compilers/fortran.py +++ b/mesonbuild/compilers/fortran.py @@ -49,9 +49,6 @@ class FortranCompiler(CLikeCompiler, Compiler): CLikeCompiler.__init__(self, is_cross, exe_wrapper) self.id = 'unknown' - def get_display_language(self): - return 'Fortran' - def has_function(self, funcname, prefix, env, *, extra_args=None, dependencies=None): raise MesonException('Fortran does not have "has_function" capability.\n' 'It is better to test if a Fortran capability is working like:\n\n' |
