diff options
author | Ole André Vadla RavnÄs <oleavr@gmail.com> | 2020-03-27 05:53:35 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-03-29 20:55:35 +0300 |
commit | 7195c0ee9c3df499a2e9015e44ddcd2718d03c8b (patch) | |
tree | 7f06b88c981846036741e12b726cbdecf0c852b9 /mesonbuild/compilers/vala.py | |
parent | 8bdc5c2dd564fc685e82f67480ad0adc43c823b2 (diff) | |
download | meson-7195c0ee9c3df499a2e9015e44ddcd2718d03c8b.zip meson-7195c0ee9c3df499a2e9015e44ddcd2718d03c8b.tar.gz meson-7195c0ee9c3df499a2e9015e44ddcd2718d03c8b.tar.bz2 |
compilers: Fix accidental coredata mutations
Diffstat (limited to 'mesonbuild/compilers/vala.py')
-rw-r--r-- | mesonbuild/compilers/vala.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/compilers/vala.py b/mesonbuild/compilers/vala.py index 012f16a..a5d49b6 100644 --- a/mesonbuild/compilers/vala.py +++ b/mesonbuild/compilers/vala.py @@ -94,7 +94,8 @@ class ValaCompiler(Compiler): def sanity_check(self, work_dir, environment): code = 'class MesonSanityCheck : Object { }' - extra_flags = environment.coredata.get_external_args(self.for_machine, self.language) + extra_flags = [] + extra_flags += environment.coredata.get_external_args(self.for_machine, self.language) if self.is_cross: extra_flags += self.get_compile_only_args() else: @@ -117,7 +118,8 @@ class ValaCompiler(Compiler): # no extra dirs are specified. if not extra_dirs: code = 'class MesonFindLibrary : Object { }' - args = env.coredata.get_external_args(self.for_machine, self.language) + args = [] + args += env.coredata.get_external_args(self.for_machine, self.language) vapi_args = ['--pkg', libname] args += vapi_args with self.cached_compile(code, env.coredata, extra_args=args, mode='compile') as p: |