Bug 1445668 - Don't hide includes when -showIncludes is explicitly passed to cl.exe, r=gps

This commit is contained in:
Nika Layzell 2018-03-15 01:08:33 -04:00
Родитель 6d83ce8024
Коммит 4d3a49a4fb
1 изменённых файлов: 8 добавлений и 5 удалений

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

@ -65,6 +65,7 @@ def InvokeClWithDependencyGeneration(cmdline):
# The deps target lives here
depstarget = os.path.basename(target) + ".pp"
showincludes = '-showIncludes' in cmdline
cmdline += ['-showIncludes']
mk = Makefile()
@ -82,11 +83,13 @@ def InvokeClWithDependencyGeneration(cmdline):
dep = normcase(dep)
if ' ' not in dep:
rule.add_dependencies([dep])
else:
# Make sure we preserve the relevant output from cl. mozprocess
# swallows the newline delimiter, so we need to re-add it.
sys.stdout.write(line)
sys.stdout.write('\n')
# Hide the line by returning early
if not showincludes:
return
# Make sure we preserve the relevant output from cl. mozprocess
# swallows the newline delimiter, so we need to re-add it.
sys.stdout.write(line)
sys.stdout.write('\n')
# We need to ignore children because MSVC can fire up a background process
# during compilation. This process is cleaned up on its own. If we kill it,