Merge pull request #4420 from margguo/fixbug/update2mdk_duplicate_files

[tools]修复由于 sconscript 文件 src 列表含有重复的文件,导致的导出 mdk 工程构建失败的问题
This commit is contained in:
Bernard Xiong 2021-03-05 23:45:55 +08:00 committed by GitHub
commit 89e0e0cb14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -626,6 +626,8 @@ def DefineGroup(name, src, depend, **parameters):
group['name'] = name
group['path'] = group_path
if type(src) == type([]):
# remove duplicate elements from list
src = list(set(src))
group['src'] = File(src)
else:
group['src'] = src