simulator: add clang-analyze tool support

When CROSS_TOOL or 'RTT_CC' env is setted to 'clang-analyze', it will
use Clang to check the codes.
This commit is contained in:
Grissiom
2013-09-07 15:15:48 +08:00
parent c289aa9fc1
commit 35cac170fa
2 changed files with 7 additions and 4 deletions
+4
View File
@@ -73,6 +73,10 @@ elif rtconfig.PLATFORM == 'mingw':
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env['LIBS']=libs
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
elif rtconfig.CROSS_TOOL == 'clang-analyze':
TARGET = 'rtthread'
env = Environment(toolpath=[os.path.join(RTT_ROOT, 'tools', 'tools')],
tools = [rtconfig.CROSS_TOOL])
else:
TARGET = 'rtthread'
env['CC']=rtconfig.CC