Selaa lähdekoodia

Update SConscript

Bernard Xiong 12 vuotta sitten
vanhempi
commit
97d1ebf6e8
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 6 1
      components/init/SConscript

+ 6 - 1
components/init/SConscript

@@ -3,6 +3,11 @@ from building import *
 cwd = GetCurrentDir()
 src = Glob('*.c')
 CPPPATH = [cwd]
-group = DefineGroup('Components', src, depend = ['RT_USING_COMPONENTS_INIT'], CPPPATH = CPPPATH)
+if rtconfig.CROSS_TOOL == 'keil':
+    LINKFLAGS = ' --keep __rt_init* '
+else:
+    LINKFLAGS = '' 
+    
+group = DefineGroup('Components', src, depend = ['RT_USING_COMPONENTS_INIT'], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS)
 
 Return('group')