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/fortran.py | |
| parent | 8bdc5c2dd564fc685e82f67480ad0adc43c823b2 (diff) | |
| download | meson-7195c0ee9c3df499a2e9015e44ddcd2718d03c8b.tar.gz | |
compilers: Fix accidental coredata mutations
Diffstat (limited to 'mesonbuild/compilers/fortran.py')
| -rw-r--r-- | mesonbuild/compilers/fortran.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py index a83c17f4e..c4451c104 100644 --- a/mesonbuild/compilers/fortran.py +++ b/mesonbuild/compilers/fortran.py @@ -68,7 +68,8 @@ class FortranCompiler(CLikeCompiler, Compiler): source_name.write_text('print *, "Fortran compilation is working."; end') - 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) extra_flags += environment.coredata.get_external_link_args(self.for_machine, self.language) extra_flags += self.get_always_args() # %% build the test executable "sanitycheckf" |
