diff options
Diffstat (limited to 'mesonbuild/envconfig.py')
| -rw-r--r-- | mesonbuild/envconfig.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index f7a43a06e..0c9f03ffd 100644 --- a/mesonbuild/envconfig.py +++ b/mesonbuild/envconfig.py @@ -12,11 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -import configparser, os, shlex, subprocess +import configparser, os, subprocess import typing from . import mesonlib -from .mesonlib import EnvironmentException +from .mesonlib import EnvironmentException, split_args from . import mlog _T = typing.TypeVar('_T') @@ -361,7 +361,7 @@ This is probably wrong, it should always point to the native compiler.''' % evar evar = self.evarMap.get(name, "") command = os.environ.get(evar) if command is not None: - command = shlex.split(command) + command = split_args(command) # Do not return empty or blank string entries if command is not None and (len(command) == 0 or len(command[0].strip()) == 0): |
