diff options
| author | guozhanxin <[email protected]> | 2021-05-17 15:11:34 +0800 |
|---|---|---|
| committer | guozhanxin <[email protected]> | 2021-05-17 15:14:59 +0800 |
| commit | f0ca8be39d8102e7d779a31fae510f8ee94ee431 (patch) | |
| tree | ba9564a373da7c28e60b62c277d2028ad419edd9 /tools/building.py | |
| parent | 6dc38962a995ced0093622669b2dc99e378e7f69 (diff) | |
【修复】studio 生成工程报错的问题。
Diffstat (limited to 'tools/building.py')
| -rw-r--r-- | tools/building.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/building.py b/tools/building.py index 90554a3082..bfdd1ff55a 100644 --- a/tools/building.py +++ b/tools/building.py @@ -448,7 +448,8 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [ duplicate=0, exports='remove_components')) # include testcases - objs.extend(SConscript(Rtt_Root + '/examples/utest/testcases/SConscript', + if os.path.isfile(os.path.join(Rtt_Root, 'examples/utest/testcases/SConscript')): + objs.extend(SConscript(Rtt_Root + '/examples/utest/testcases/SConscript', variant_dir=kernel_vdir + '/examples/utest/testcases', duplicate=0)) |
