From 9c5bda3f40ce89b3e2bcc6cdc8015c9a17a53578 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 12 Mar 2016 17:32:43 +0200 Subject: [PATCH] Return array by value so it does not get modified. --- mesonbuild/compilers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index aba4b9528..f3ddf8d34 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -1189,7 +1189,7 @@ class VisualStudioCCompiler(CCompiler): } def get_option_link_args(self, options): - return options['c_winlibs'].value + return options['c_winlibs'].value[:] def unix_link_flags_to_native(self, args): result = [] @@ -1265,7 +1265,7 @@ class VisualStudioCPPCompiler(VisualStudioCCompiler): return args def get_option_link_args(self, options): - return options['cpp_winlibs'].value + return options['cpp_winlibs'].value[:] GCC_STANDARD = 0 GCC_OSX = 1