|
@@ -195,7 +195,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
|
|
|
os.environ['RTT_CC_PREFIX'] = exec_prefix
|
|
|
|
|
|
# auto change the 'RTT_EXEC_PATH' when 'rtconfig.EXEC_PATH' get failed
|
|
|
- if not os.path.exists(os.path.join(rtconfig.EXEC_PATH, rtconfig.CC)):
|
|
|
+ if not utils.CmdExists(os.path.join(rtconfig.EXEC_PATH, rtconfig.CC)):
|
|
|
if 'RTT_EXEC_PATH' in os.environ:
|
|
|
# del the 'RTT_EXEC_PATH' and using the 'EXEC_PATH' setting on rtconfig.py
|
|
|
del os.environ['RTT_EXEC_PATH']
|