aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-03-12 17:32:43 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-03-12 17:32:43 +0200
commit9c5bda3f40ce89b3e2bcc6cdc8015c9a17a53578 (patch)
tree3efba67d6a06a692bf582387dd2206ff34a4e831
parent6b548a1c7587238415e32cde6121b071ebee490c (diff)
downloadmeson-9c5bda3f40ce89b3e2bcc6cdc8015c9a17a53578.zip
meson-9c5bda3f40ce89b3e2bcc6cdc8015c9a17a53578.tar.gz
meson-9c5bda3f40ce89b3e2bcc6cdc8015c9a17a53578.tar.bz2
Return array by value so it does not get modified.
-rw-r--r--mesonbuild/compilers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index aba4b95..f3ddf8d 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