mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 01:07:21 +00:00
Add GCC version detection.
Add cconfig.h file for different version of GCC, which is automatically detected and generated by scons script.
This commit is contained in:
@@ -35,10 +35,4 @@ if RT_USING_LIBC && RT_USING_DFS
|
||||
endif
|
||||
endif
|
||||
|
||||
config HAVE_SYS_SIGNALS
|
||||
bool "Toolchains/libc has sigval/sigevent structure definitions"
|
||||
default n
|
||||
help
|
||||
Toolchains/libc has sigval/sigevent/siginfo_t definitions.
|
||||
|
||||
endmenu
|
||||
|
||||
@@ -8,6 +8,12 @@ group = []
|
||||
CPPPATH = [cwd]
|
||||
CPPDEFINES = ['RT_USING_ARM_LIBC']
|
||||
|
||||
if GetDepend('RT_USING_DFS') == False:
|
||||
SrcRemove(src, ['stdio.c'])
|
||||
|
||||
if GetDepend('RT_USING_MODULE') == False:
|
||||
SrcRemove(src, ['libc_syms.c'])
|
||||
|
||||
if rtconfig.PLATFORM == 'armcc':
|
||||
group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'],
|
||||
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||||
|
||||
Reference in New Issue
Block a user