Bug 925894 - Normalize cl generated dependencies before testing for spaces in them. p=glandium, r=gps

This commit is contained in:
John Hopkins 2013-10-16 14:13:14 -04:00
parent ecd84446bf
commit a72bc0e1f1
2 changed files with 4 additions and 2 deletions

View File

@ -76,8 +76,9 @@ def InvokeClWithDependencyGeneration(cmdline):
# We can't handle pathes with spaces properly in mddepend.pl, but
# we can assume that anything in a path with spaces is a system
# header and throw it away.
dep = normcase(dep)
if ' ' not in dep:
rule.add_dependencies([normcase(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.

View File

@ -76,8 +76,9 @@ def InvokeClWithDependencyGeneration(cmdline):
# We can't handle pathes with spaces properly in mddepend.pl, but
# we can assume that anything in a path with spaces is a system
# header and throw it away.
dep = normcase(dep)
if ' ' not in dep:
rule.add_dependencies([normcase(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.