Skip to content

Commit 07519cf

Browse files
NU-LLgitee-org
authored andcommitted
update tools/building.py.
添加stackanalysis选项
1 parent 6e36f54 commit 07519cf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tools/building.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
209209
dest = 'target',
210210
type = 'string',
211211
help = 'set target project: mdk/mdk4/mdk5/iar/vs/vsc/ua/cdk/ses/makefile/eclipse')
212+
AddOption('--stackanalysis',
213+
dest = 'stackanalysis',
214+
action = 'store_true',
215+
default = False,
216+
help = 'thread stack static analysis')
212217
AddOption('--genconfig',
213218
dest = 'genconfig',
214219
action = 'store_true',
@@ -363,6 +368,11 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
363368
genconfig()
364369
exit(0)
365370

371+
if GetOption('stackanalysis'):
372+
from WCS import ThreadStackStaticAnalysis
373+
ThreadStackStaticAnalysis(Env)
374+
exit(0)
375+
366376
if env['PLATFORM'] != 'win32':
367377
AddOption('--menuconfig',
368378
dest = 'menuconfig',

0 commit comments

Comments
 (0)