소스 검색

update armcc compiler options to support debug in Keil.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@122 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong 15 년 전
부모
커밋
19c6eedc69
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      bsp/stm3210/rtconfig.py

+ 2 - 1
bsp/stm3210/rtconfig.py

@@ -62,7 +62,8 @@ elif PLATFORM == 'armcc':
     EXEC_PATH += '/arm/bin40/'
 
     if BUILD == 'debug':
-        CFLAGS += ' --dwarf2'
+        CFLAGS += ' -g -O0'
+        AFLAGS += ' -g'
     else:
         CFLAGS += ' -O2'