diff options
| author | zhkag <[email protected]> | 2023-06-07 11:46:18 +0800 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-06-07 08:52:28 -0400 |
| commit | 22972409d4efd9ea2d8248024a88307615a0ca6c (patch) | |
| tree | a42bbddab6634f57eda8be215f40b1f151dd0f32 /components/libc/compilers/common/SConscript | |
| parent | 0a7b08d00accabd9b6921aa93c55119ec9248312 (diff) | |
[simulator] 修复 linux simulator 编译运行失败
Diffstat (limited to 'components/libc/compilers/common/SConscript')
| -rw-r--r-- | components/libc/compilers/common/SConscript | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/libc/compilers/common/SConscript b/components/libc/compilers/common/SConscript index fda7c6bf61..bb1abae5d5 100644 --- a/components/libc/compilers/common/SConscript +++ b/components/libc/compilers/common/SConscript @@ -11,6 +11,8 @@ if rtconfig.PLATFORM in ['armcc', 'armclang']: CPPDEFINES += ['__CLK_TCK=RT_TICK_PER_SECOND'] elif rtconfig.PLATFORM in ['iccarm']: CPPDEFINES += ['CLOCKS_PER_SEC=RT_TICK_PER_SECOND'] # forcly revert to 1 by IAR +elif rtconfig.PLATFORM in ['gcc'] and rtconfig.CPU in ['posix']: + CPPDEFINES += ['_GNU_SOURCE'] # linux x86 platform gcc use! src += Glob('*.c') |
