Backed out changeset 25964226853a (bug 1607204) for causing bug 1610471 which crashes the reviewbot a=backout CLOSED TREE

This commit is contained in:
shindli 2020-01-21 15:40:45 +02:00
Родитель cfd1cc461f
Коммит 68d14ea795
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -7,7 +7,6 @@
from __future__ import absolute_import, print_function
import os
from shlex import split as shell_split
import types
from mozbuild.backend.common import CommonBackend
@ -103,7 +102,13 @@ class CompileDBBackend(CommonBackend):
variables.update(self._local_flags[directory])
c = []
for a in cmd:
c.extend(shell_split(expand_variables(a, variables)))
a = expand_variables(a, variables).split()
if not a:
continue
if isinstance(a, types.StringTypes):
c.append(a)
else:
c.extend(a)
per_source_flags = self._per_source_flags.get(filename)
if per_source_flags is not None:
c.extend(per_source_flags)