diff options
author | James Westman <flyingpimonster@flyingpimonster.net> | 2019-06-24 12:04:12 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-06-27 21:28:54 +0300 |
commit | 77c3e6a4aaed07e626f4bf4deb7eb66e0f03a33d (patch) | |
tree | bf8a10d22a6b467b616f731be972752c3ce61035 /mesonbuild/compilers/compilers.py | |
parent | 9149aaba9c87250a7fc92686c37057038f57ef99 (diff) | |
download | meson-77c3e6a4aaed07e626f4bf4deb7eb66e0f03a33d.zip meson-77c3e6a4aaed07e626f4bf4deb7eb66e0f03a33d.tar.gz meson-77c3e6a4aaed07e626f4bf4deb7eb66e0f03a33d.tar.bz2 |
Fix two errors when cross-compiling with Vala
- AttributeError: 'ValaCompiler' object has no attribute 'get_program_dirs'
Fixed by adding a `get_program_dirs()` function to the base Compiler
class, to match `get_library_dirs()`
- KeyError: 'vala_COMPILER'
Fixed by creating the Vala compile rules for all machines, not just
the build machine.
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 5855de7..86c1e33 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1117,6 +1117,9 @@ class Compiler: def get_library_dirs(self, *args, **kwargs): return () + def get_program_dirs(self, *args, **kwargs): + return () + def has_multi_arguments(self, args, env) -> Tuple[bool, bool]: raise EnvironmentException( 'Language {} does not support has_multi_arguments.'.format( |