diff options
| author | 192.168.1.134 <[email protected]> | 2021-11-08 15:02:29 +0800 |
|---|---|---|
| committer | 192.168.1.134 <[email protected]> | 2021-11-08 15:02:29 +0800 |
| commit | 85da2247c050ff16842eba5927fc34a06564c5dc (patch) | |
| tree | d489fbe3078ed99096210087be80759dd515d703 /components/libc/compilers/common/SConscript | |
| parent | 078c3c5991e3024664fe7a51878874e02bf107dc (diff) | |
| parent | 9e7d7ae52544fd8e84f18734fd4216fc7659d9c9 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/libc/compilers/common/SConscript')
| -rw-r--r-- | components/libc/compilers/common/SConscript | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/components/libc/compilers/common/SConscript b/components/libc/compilers/common/SConscript index b7a6626a36..504bf84e56 100644 --- a/components/libc/compilers/common/SConscript +++ b/components/libc/compilers/common/SConscript @@ -1,5 +1,4 @@ from building import * - Import('rtconfig') src = [] @@ -8,13 +7,13 @@ group = [] CPPPATH = [cwd] CPPDEFINES = [] +if rtconfig.CROSS_TOOL == 'keil': + CPPDEFINES += ['__CLK_TCK=RT_TICK_PER_SECOND'] + if GetDepend('RT_USING_LIBC'): src += Glob('*.c') elif GetDepend('RT_LIBC_USING_TIME'): - src += Glob('time.c') - -if rtconfig.CROSS_TOOL == 'keil': - CPPDEFINES += ['__CLK_TCK=RT_TICK_PER_SECOND'] + src += ['time.c'] group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) |
