mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-22 00:03:02 +08:00
[tools] Modify building.py and gcc.py for work with Python 3.
This commit is contained in:
@@ -806,7 +806,7 @@ def EndBuilding(target, program = None):
|
|||||||
|
|
||||||
if not GetOption('help') and not GetOption('target'):
|
if not GetOption('help') and not GetOption('target'):
|
||||||
if not os.path.exists(rtconfig.EXEC_PATH):
|
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.")
|
print ("Error: the toolchain path (" + rtconfig.EXEC_PATH + ") is not exist, please check 'EXEC_PATH' in path or rtconfig.py.")
|
||||||
need_exit = True
|
need_exit = True
|
||||||
|
|
||||||
if need_exit:
|
if need_exit:
|
||||||
|
@@ -148,7 +148,6 @@ def GCCResult(rtconfig, str):
|
|||||||
result += '#define LIBC_POSIX_THREADS 1\n'
|
result += '#define LIBC_POSIX_THREADS 1\n'
|
||||||
|
|
||||||
os.remove('__tmp.c')
|
os.remove('__tmp.c')
|
||||||
f.close()
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def GenerateGCCConfig(rtconfig):
|
def GenerateGCCConfig(rtconfig):
|
||||||
|
Reference in New Issue
Block a user