summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-05-20 16:41:12 +0800
committerBernard Xiong <[email protected]>2015-05-20 16:41:12 +0800
commit1535c5139a1c8cd6ee8685279f7936a2b9426ed4 (patch)
treeb9e44debe9754ade5f1f9346c8f45acd1d76162c /src
parent7d73fb8bdbca622142e9802dc7a9a495563638f0 (diff)
parentbe7b8421a51da1993cd48ef5a8e5e19cbc1343dc (diff)
Merge pull request #482 from pangweishen/master
when the macro of RT_USING_COMPONENTS_INIT is not open ,then remove the source of components.c from the project.
Diffstat (limited to 'src')
-rw-r--r--src/SConscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SConscript b/src/SConscript
index 953ea5060d..bb38baa6bd 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -15,6 +15,9 @@ if rtconfig.CROSS_TOOL == 'keil':
else:
LINKFLAGS = ''
+if GetDepend('RT_USING_COMPONENTS_INIT') == False:
+ SrcRemove(src, ['components.c'])
+
if GetDepend('RT_USING_MODULE') == False:
SrcRemove(src, ['module.c'])