[tools][build] Fail when the toolchain directory is missing

This commit is contained in:
Rbb666 authored and Yuqiang Wang committed 2026-10-12 09:56:31 +08:00
1 parent ceef6e0ccd
commit 20c3e12b05
1 file changed
+1 -1
+1 -1
View File
@@ -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)