diff options
| author | Bernard Xiong <[email protected]> | 2017-10-24 12:44:13 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-10-24 12:44:13 +0800 |
| commit | 6c0a2e8ffc88da96ce7b25729492df2df414a4eb (patch) | |
| tree | 49e61c5e3bd2eb57fcd4572e839c5049c4089218 /tools | |
| parent | 7a36b1f918d23dd7fa6c30992ea2bec896808f20 (diff) | |
| parent | a1902f2de0b8dda7530c43d4bd1f8674884b5a8d (diff) | |
Merge pull request #898 from aozima/pulls
[BSP] Fix the align issue in __bss_start.
[Tools] Auto-detect the parameter type in SrcRemove.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/building.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tools/building.py b/tools/building.py index 204fd5037f..f5cbd31617 100644 --- a/tools/building.py +++ b/tools/building.py @@ -695,15 +695,13 @@ def SrcRemove(src, remove): if not src: return - if type(src[0]) == type('str'): - for item in src: + for item in src: + if type(item) == type('str'): if os.path.basename(item) in remove: src.remove(item) - return - - for item in src: - if os.path.basename(item.rstr()) in remove: - src.remove(item) + else: + if os.path.basename(item.rstr()) in remove: + src.remove(item) def GetVersion(): import SCons.cpp |
