Skip to content

Commit

Permalink
Return array by value so it does not get modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane committed Mar 12, 2016
1 parent 6b548a1 commit 9c5bda3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesonbuild/compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ def get_options(self):
}

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 = []
Expand Down Expand Up @@ -1265,7 +1265,7 @@ def get_option_compile_args(self, options):
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
Expand Down

0 comments on commit 9c5bda3

Please sign in to comment.