diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-11-25 11:45:17 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-12-12 09:35:30 -0800 |
commit | ee6e249f659cd4658ae2f1a425d4aa01585c23aa (patch) | |
tree | 6de9864f5af4ff60409d99b43c2cbe0f13d2618b /mesonbuild/compilers/rust.py | |
parent | 0bf8862bebf6057b3020443cee4238d6db5638d0 (diff) | |
download | meson-ee6e249f659cd4658ae2f1a425d4aa01585c23aa.zip meson-ee6e249f659cd4658ae2f1a425d4aa01585c23aa.tar.gz meson-ee6e249f659cd4658ae2f1a425d4aa01585c23aa.tar.bz2 |
compilers: move language attribute to the class level
We know that if a compiler class inherits CCompiler it's language will
be C, so doing this at the class level makes more sense.
Diffstat (limited to 'mesonbuild/compilers/rust.py')
-rw-r--r-- | mesonbuild/compilers/rust.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py index 405afea..613414d 100644 --- a/mesonbuild/compilers/rust.py +++ b/mesonbuild/compilers/rust.py @@ -33,10 +33,10 @@ rust_optimization_args = {'0': [], class RustCompiler(Compiler): # rustc doesn't invoke the compiler itself, it doesn't need a LINKER_PREFIX + language = 'rust' def __init__(self, exelist, version, for_machine: MachineChoice, is_cross, info: 'MachineInfo', exe_wrapper=None, **kwargs): - self.language = 'rust' super().__init__(exelist, version, for_machine, info, **kwargs) self.exe_wrapper = exe_wrapper self.id = 'rustc' |