mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 09:08:25 +00:00
[libc] support external third pary libc software package (#7425)
This commit is contained in:
committed by
GitHub
parent
74719aafc8
commit
d580042145
@@ -1,5 +1,8 @@
|
||||
menu "C/C++ and POSIX layer"
|
||||
|
||||
config RT_USING_EXTERNAL_LIBC
|
||||
bool
|
||||
|
||||
config RT_LIBC_DEFAULT_TIMEZONE
|
||||
int "Set the default time zone (UTC+)"
|
||||
range -12 12
|
||||
|
||||
@@ -5,10 +5,10 @@ Import('rtconfig')
|
||||
|
||||
group = []
|
||||
|
||||
libc_name, libc_version = GetGCCLibcNameVersion(rtconfig)
|
||||
musllibc_version = GetMuslVersion(rtconfig)
|
||||
|
||||
if libc_name == 'musl':
|
||||
print('Musl version: ' + libc_version)
|
||||
if musllibc_version:
|
||||
print('Musl version: ' + musllibc_version)
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = Glob('*.c')
|
||||
|
||||
@@ -5,10 +5,10 @@ Import('rtconfig')
|
||||
|
||||
group = []
|
||||
|
||||
libc_name, libc_version = GetGCCLibcNameVersion(rtconfig)
|
||||
newlib_version = GetNewLibVersion(rtconfig)
|
||||
|
||||
if libc_name == 'newlib':
|
||||
print('Newlib version: ' + libc_version)
|
||||
if newlib_version and not GetDepend('RT_USING_EXTERNAL_LIBC'):
|
||||
print('Newlib version: ' + newlib_version)
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = Glob('*.c')
|
||||
|
||||
Reference in New Issue
Block a user