From 387b5e67a03ad9ea2c17431417293cc3561badb6 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 2 Dec 2017 02:28:29 +0530 Subject: [PATCH] linkers: Return a Copy of VisualStudioLinker always_args Otherwise people will accidentally append to it. --- mesonbuild/linkers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py index e0554e0d8..de788b7b6 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 []