diff --git a/plugin/flags_sources/compilation_db.py b/plugin/flags_sources/compilation_db.py index 76eb5e9e..a21fb19f 100644 --- a/plugin/flags_sources/compilation_db.py +++ b/plugin/flags_sources/compilation_db.py @@ -131,7 +131,9 @@ def _parse_entry(self, entry, base_path): base_path = path.realpath(entry['directory']) if 'command' in entry: import shlex - argument_list = shlex.split(entry['command']) + import os + argument_list = shlex.split(entry['command'], + posix=os.name == 'posix') elif 'arguments' in entry: argument_list = entry['arguments'] else: