summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2022-10-25 00:01:37 -0400
committerGitHub <[email protected]>2022-10-25 00:01:37 -0400
commit055267f049b9236e7643ba06df660a929d55371d (patch)
tree5c51fd05b5015c85dad10ea79fdd383674ac510c /tools
parent7bc744dae91fcd245a23b2e5d24c92150bc8885b (diff)
[compiler] 增加SConscript依赖标志 AddDepend (#6534)
* [compiler] 增加SConscript依赖标志 AddDepend * RT_USING_NEWLIB->RT_USING_NEWLIBC RT_USING_ARM_LIBC->RT_USING_ARMLIBC * 删除过时的板载测试例程 * [gd32] 移除无用的反汇编文件 * [bsp]移除老旧bsp中对RT_USING_NEWLIBC的手动宏定义
Diffstat (limited to 'tools')
-rw-r--r--tools/building.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/building.py b/tools/building.py
index 97f0b41450..ada75f7806 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -467,7 +467,17 @@ def GetLocalDepend(options, depend):
return building
def AddDepend(option):
- BuildOptions[option] = 1
+ if isinstance(option, str):
+ BuildOptions[option] = 1
+ elif isinstance(option, list):
+ for obj in option:
+ if isinstance(obj, str):
+ BuildOptions[obj] = 1
+ else:
+ print('AddDepend arguements are illegal!')
+ else:
+ print('AddDepend arguements are illegal!')
+
def MergeGroup(src_group, group):
src_group['src'] = src_group['src'] + group['src']