소스 검색

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.
Bernard Xiong 10 년 전
부모
커밋
1535c5139a
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/SConscript

+ 3 - 0
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'])