diff --git a/tools/building.py b/tools/building.py index 125da8521e76..7abedd4f27e6 100644 --- a/tools/building.py +++ b/tools/building.py @@ -1067,7 +1067,7 @@ def EndBuilding(target, program = None): if not GetOption('help') and not GetOption('target'): if not os.path.exists(rtconfig.EXEC_PATH): print ("Error: the toolchain path (" + rtconfig.EXEC_PATH + ") is not exist, please check 'EXEC_PATH' in path or rtconfig.py.") - need_exit = True + sys.exit(1) if need_exit: exit(0)