diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-12-02 02:28:29 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-12-03 10:06:11 +0530 |
commit | 387b5e67a03ad9ea2c17431417293cc3561badb6 (patch) | |
tree | cd73daa01296a8909c453716df9dfe44266409f8 | |
parent | d932cd9fb48e8fecb167641c3d6bee8a68831c6e (diff) | |
download | meson-387b5e67a03ad9ea2c17431417293cc3561badb6.zip meson-387b5e67a03ad9ea2c17431417293cc3561badb6.tar.gz meson-387b5e67a03ad9ea2c17431417293cc3561badb6.tar.bz2 |
linkers: Return a Copy of VisualStudioLinker always_args
Otherwise people will accidentally append to it.
-rw-r--r-- | mesonbuild/linkers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py index e0554e0..de788b7 100644 --- a/mesonbuild/linkers.py +++ b/mesonbuild/linkers.py @@ -40,10 +40,10 @@ class VisualStudioLinker(StaticLinker): return [] def get_always_args(self): - return VisualStudioLinker.always_args + return VisualStudioLinker.always_args[:] def get_linker_always_args(self): - return VisualStudioLinker.always_args + return VisualStudioLinker.always_args[:] def build_rpath_args(self, build_dir, from_dir, rpath_paths, build_rpath, install_rpath): return [] |