mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 02:06:14 +08:00
[LIBC] Use RT_USING_LIBC instead of libs option for each compiler
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
Import('rtconfig')
|
||||
from building import *
|
||||
|
||||
if GetDepend('RT_USING_ARM_LIBC') and rtconfig.CROSS_TOOL != 'keil':
|
||||
print '================ERROR=============================='
|
||||
print 'Please use ARM CC compiler if using ARM C library'
|
||||
print '==================================================='
|
||||
exit(0)
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = Glob('*.c')
|
||||
CPPPATH = [cwd]
|
||||
cwd = GetCurrentDir()
|
||||
|
||||
group = DefineGroup('libc', src, depend = ['RT_USING_ARM_LIBC'], CPPPATH = CPPPATH)
|
||||
CPPPATH = [cwd]
|
||||
CPPDEFINES = ['RT_USING_ARM_LIBC']
|
||||
|
||||
group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'],
|
||||
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||||
|
||||
Return('group')
|
||||
|
||||
Reference in New Issue
Block a user