diff options
Diffstat (limited to 'mesonbuild/mconf.py')
-rw-r--r-- | mesonbuild/mconf.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index 363b4a9..f65d6ff 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -15,6 +15,7 @@ import os import sys import argparse +import shlex from . import (coredata, mesonlib, build) def buildparser(): @@ -119,14 +120,14 @@ class Conf: raise ConfException('Unknown language %s in linkargs.' % lang) # TODO, currently split on spaces, make it so that user # can pass in an array string. - newvalue = v.split() + newvalue = shlex.split(v) self.coredata.external_link_args[lang] = newvalue elif k.endswith('_args'): lang = k[:-5] if lang not in self.coredata.external_args: raise ConfException('Unknown language %s in compile args' % lang) # TODO same fix as above - newvalue = v.split() + newvalue = shlex.split(v) self.coredata.external_args[lang] = newvalue else: raise ConfException('Unknown option %s.' % k) |