summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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'])