summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2023-01-01 23:46:45 -0500
committerGitHub <[email protected]>2023-01-02 12:46:45 +0800
commit8abaf177720e168207dd09582a6caa361910208e (patch)
tree5a6e20db9ab3afff0901915c8725b214778a380d /tools
parent93a7cff44ccc2921f57dd05096268064bcaadd06 (diff)
[tools] attach #6764 (#6799)
Diffstat (limited to 'tools')
-rw-r--r--tools/building.py2
-rw-r--r--tools/options.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/building.py b/tools/building.py
index ed9f77876e..4a9609bba1 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -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):
diff --git a/tools/options.py b/tools/options.py
index 6f6c588f21..3d705a792f 100644
--- a/tools/options.py
+++ b/tools/options.py
@@ -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')