diff options
author | Alexis Jeandet <alexis.jeandet@member.fsf.org> | 2017-09-18 22:19:12 +0200 |
---|---|---|
committer | Alexis Jeandet <alexis.jeandet@member.fsf.org> | 2017-09-18 22:25:34 +0200 |
commit | e553d0807bad5db8290e26954ce7634bc0e181fd (patch) | |
tree | 3fb5c9c681bf7071c0765c0f2d55d067a27d70ce /mesonbuild/compilers/c.py | |
parent | bf64cf569b6ecf90db0f2bb181edb8f0ff0c9a3b (diff) | |
download | meson-e553d0807bad5db8290e26954ce7634bc0e181fd.zip meson-e553d0807bad5db8290e26954ce7634bc0e181fd.tar.gz meson-e553d0807bad5db8290e26954ce7634bc0e181fd.tar.bz2 |
Last round with listify function refactoring.
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r-- | mesonbuild/compilers/c.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index ec16134..255a506 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -16,7 +16,7 @@ import subprocess, os.path, tempfile from .. import mlog from .. import coredata -from ..mesonlib import EnvironmentException, version_compare, Popen_safe +from ..mesonlib import EnvironmentException, version_compare, Popen_safe, listify from .compilers import ( GCC_MINGW, @@ -1013,8 +1013,7 @@ class VisualStudioCCompiler(CCompiler): def get_link_whole_for(self, args): # Only since VS2015 - if not isinstance(args, list): - args = [args] + args = listify(args) return ['/WHOLEARCHIVE:' + x for x in args] def get_instruction_set_args(self, instruction_set): |