From 285bf92672e618124cedf554f39c7f30824453bf Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Tue, 5 May 2015 14:25:27 +0200 Subject: Fix scons2ninja.py for Windows shlex.split has a 3rd parameter specifying whether or not to run in POSIX mode, which defaults to True. This breaks splitting of Windows paths so it is set to False on Windows. Test-Information: Tested on OS X 10.9.5 and Windows 8. Change-Id: Icdc9fc07e89a80249526daa8f13dba081f957670 diff --git a/BuildTools/scons2ninja.py b/BuildTools/scons2ninja.py index a39ed32..c0eca0d 100755 --- a/BuildTools/scons2ninja.py +++ b/BuildTools/scons2ninja.py @@ -120,7 +120,7 @@ def get_built_libs(libs, libpaths, outputs) : return result def parse_tool_command(line) : - command = shlex.split(line) + command = shlex.split(line, False, False if sys.platform == 'win32' else True) flags = command[1:] tool = os.path.splitext(os.path.basename(command[0]))[0] if tool.startswith('clang++') or tool.startswith('g++') : -- cgit v0.10.2-6-g49f6