mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user