summaryrefslogtreecommitdiff
path: root/bsp/simulator/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/simulator/SConstruct')
-rwxr-xr-xbsp/simulator/SConstruct11
1 files changed, 5 insertions, 6 deletions
diff --git a/bsp/simulator/SConstruct b/bsp/simulator/SConstruct
index 4db7328f2a..a95fe7d23f 100755
--- a/bsp/simulator/SConstruct
+++ b/bsp/simulator/SConstruct
@@ -122,13 +122,12 @@ if GetDepend('RT_USING_MODULE'):
default=False,
help='create rthread.def of rtthread.dll on windows')
if GetOption('def'):
- if rtconfig.PLATFORM != 'mingw':
- print "scons error: `--def' can only work with mingw"
- exit(1)
+ if rtconfig.PLATFORM == 'mingw':
+ env['LINKFLAGS'] = rtconfig.DEFFILE_LFLAGS
+ else:
+ rtconfig.POST_ACTION = 'createdef.py $TARGET rtthread.def'
- env['LINKFLAGS'] = rtconfig.DEFFILE_LFLAGS
- env.SharedLibrary("rtthread.dll", objs)
- program = ''
+ program = env.Program(TARGET, objs)
else:
if rtconfig.PLATFORM == 'cl':
objs += ['rtthread.def']