diff options
| author | [email protected] <[email protected]> | 2012-11-17 05:18:06 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-11-17 05:18:06 +0000 |
| commit | 14709082a51768df533d96732b715344bce2c61f (patch) | |
| tree | b0dc47276b8ca1f59b09a704cc3daf5fba6bc454 /bsp/simulator/rtconfig.py | |
| parent | df249c467df29a05d07a08b42c9bed2eb9b82c84 (diff) | |
fix the link bug in bsp/simulator
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2423 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/simulator/rtconfig.py')
| -rw-r--r-- | bsp/simulator/rtconfig.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/bsp/simulator/rtconfig.py b/bsp/simulator/rtconfig.py index 4f6d5b024e..cb86c719ca 100644 --- a/bsp/simulator/rtconfig.py +++ b/bsp/simulator/rtconfig.py @@ -58,17 +58,20 @@ elif PLATFORM == 'cl': AR = PREFIX + 'cl'
LINK = PREFIX + 'cl'
AFLAGS = ''
+ CFLAGS = ''
+ LFLAGS = ''
- CFLAGS = '/MT /ZI /Od /W 3 /WL '
- #LFLAGS = '/SUBSYSTEM:WINDOWS /NODEFAULTLIB /MACHINE:X86 /DEBUG'
- LFLAGS = '/SUBSYSTEM:CONSOLE /NODEFAULTLIB /MACHINE:X86 '
+ if BUILD == 'debug':
+ CFLAGS += ' /MTd'
+ LFLAGS += ' /DEBUG'
+ else:
+ CFLAGS += ' /MT'
+ LFLAGS += ''
+
+ CFLAGS += ' /ZI /Od /W 3 /WL '
+ LFLAGS += ' /SUBSYSTEM:CONSOLE /MACHINE:X86 '
CPATH = ''
LPATH = ''
- if BUILD == 'debug':
- CFLAGS += ' /DEBUG'
- else:
- CFLAGS += ''
-
POST_ACTION = ''
|
