update sconscript

This commit is contained in:
Meco Man 2021-04-18 00:55:32 +08:00
parent 9d401ea8b0
commit bc25c8a6e8
1 changed files with 7 additions and 7 deletions

View File

@ -2,12 +2,12 @@ from building import *
Import('rtconfig')
if rtconfig.PLATFORM == 'iar' or rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
src = []
cwd = GetCurrentDir()
CPPPATH = [cwd]
group = []
src += Glob('*.c')
if rtconfig.PLATFORM != 'gcc':
group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'], CPPPATH = CPPPATH)
Return('group')