[tools] attach #6764 (#6799)

This commit is contained in:
Man, Jianting (Meco) 2023-01-01 23:46:45 -05:00 committed by GitHub
parent 93a7cff44c
commit 8abaf17772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -209,7 +209,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
exec_prefix = GetOption('exec-prefix')
if exec_prefix:
os.environ['RTT_EXEC_PREFIX'] = exec_prefix
os.environ['RTT_CC_PREFIX'] = exec_prefix
# auto change the 'RTT_EXEC_PATH' when 'rtconfig.EXEC_PATH' get failed
if not os.path.exists(rtconfig.EXEC_PATH):

View File

@ -85,11 +85,11 @@ def AddOptions():
dest = 'target',
type = 'string',
help = 'set target project: mdk/mdk4/mdk5/iar/vs/vsc/ua/cdk/ses/makefile/eclipse/codelite/cmake')
AddOption('--exec-prefix',
AddOption('--cc-prefix', '--exec-prefix',
dest = 'exec-prefix',
type = 'string',
help = 'set RTT_EXEC_PREFIX temperately')
AddOption('--exec-path',
help = 'set RTT_CC_PREFIX temperately')
AddOption('--cc-path', '--exec-path',
dest = 'exec-path',
type = 'string',
help = 'set RTT_EXEC_PATH temperately')