提交 a4bb77d0 编写于 作者: B Bernard Xiong

Merge pull request #351 from grissiom/fix-tools-srcremove

tools: fix SrcRemove on empty src
...@@ -495,6 +495,9 @@ def EndBuilding(target, program = None): ...@@ -495,6 +495,9 @@ def EndBuilding(target, program = None):
CscopeDatabase(Projects) CscopeDatabase(Projects)
def SrcRemove(src, remove): def SrcRemove(src, remove):
if not src:
return
if type(src[0]) == type('str'): if type(src[0]) == type('str'):
for item in src: for item in src:
if os.path.basename(item) in remove: if os.path.basename(item) in remove:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册