소스 검색

Merge pull request #352 from grissiom/fix-tools-srcremove-st

tools: fix SrcRemove on empty src
Bernard Xiong 11 년 전
부모
커밋
c7ee7f9858
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      tools/building.py

+ 3 - 0
tools/building.py

@@ -493,6 +493,9 @@ def EndBuilding(target, program = None):
         CscopeDatabase(Projects)
 
 def SrcRemove(src, remove):
+    if not src:
+        return
+
     if type(src[0]) == type('str'):
         for item in src:
             if os.path.basename(item) in remove: