[build] Do not fail build if source dir has 'debug' in it.

If the source checkout had 'debug' somewhere in the path name, then
IsDebuggerFile() marked all modules as debug ones, which triggered
an assertion during snapshot generation.

Bug: 
Change-Id: I93537efca9152c5469bb760f32ca53b06351f7a4
Reviewed-on: https://chromium-review.googlesource.com/809205
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49980}
This commit is contained in:
Mikhail Gusarov 2017-12-05 21:50:13 +01:00 committed by Commit Bot
parent f848965ef1
commit f987549009
2 changed files with 2 additions and 1 deletions

View File

@ -106,6 +106,7 @@ Michael Smith <mike@w3.org>
Michaël Zasso <mic.besace@gmail.com>
Mike Gilbert <floppymaster@gmail.com>
Mike Pennisi <mike@mikepennisi.com>
Mikhail Gusarov <dottedmag@dottedmag.net>
Milton Chiang <milton.chiang@mediatek.com>
Myeong-bo Shim <m0609.shim@samsung.com>
Nicolas Antonius Ernst Leopold Maria Kaiser <nikai@nikai.net>

View File

@ -365,7 +365,7 @@ class Sources:
def IsDebuggerFile(filename):
return "debug" in filename
return os.path.basename(os.path.dirname(filename)) == "debug"
def IsMacroFile(filename):
return filename.endswith("macros.py")