mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-27 05:30:06 +00:00
[tool]Fix the issue where using the command "scons --target=eclipse" would rename the project name to "project".
This commit is contained in:
@@ -869,7 +869,8 @@ def GenTargetProject(program = None):
|
||||
|
||||
if GetOption('target') == 'eclipse':
|
||||
from targets.eclipse import TargetEclipse
|
||||
TargetEclipse(Env, GetOption('reset-project-config'), GetOption('project-name'))
|
||||
project_name = os.path.basename(Dir('#').abspath)
|
||||
TargetEclipse(Env, GetOption('reset-project-config'), project_name)
|
||||
|
||||
if GetOption('target') == 'codelite':
|
||||
from targets.codelite import TargetCodelite
|
||||
|
||||
Reference in New Issue
Block a user