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 /bsp/simulator/SConstruct | |
| parent | 0a7b08d00accabd9b6921aa93c55119ec9248312 (diff) | |
[simulator] 修复 linux simulator 编译运行失败
Diffstat (limited to 'bsp/simulator/SConstruct')
| -rwxr-xr-x | bsp/simulator/SConstruct | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bsp/simulator/SConstruct b/bsp/simulator/SConstruct index 74a10ccc84..d359d744f4 100755 --- a/bsp/simulator/SConstruct +++ b/bsp/simulator/SConstruct @@ -73,7 +73,8 @@ else: env['CC']=rtconfig.CC env.Append(CFLAGS=rtconfig.CFLAGS) env.Append(LINKFLAGS=rtconfig.LFLAGS) - env.Append(LIBS=['winmm']) + if sys.platform == 'win32': + env.Append(LIBS=['winmm']) # prepare building environment @@ -96,8 +97,9 @@ def ProjectRemove(group, remove): item['src'].remove(src) return -ObjRemove(objs, ['components.obj', 'components.o', 'components.c']) -ProjectRemove('Kernel', ['components.obj', 'components.o', 'components.c']) +if rtconfig.CPU != 'posix': + ObjRemove(objs, ['components.obj', 'components.o', 'components.c']) + ProjectRemove('Kernel', ['components.obj', 'components.o', 'components.c']) # build program -shared if GetDepend('RT_USING_MODULE'): |
