mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-27 13:40:08 +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':
|
if GetOption('target') == 'eclipse':
|
||||||
from targets.eclipse import TargetEclipse
|
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':
|
if GetOption('target') == 'codelite':
|
||||||
from targets.codelite import TargetCodelite
|
from targets.codelite import TargetCodelite
|
||||||
|
|||||||
Reference in New Issue
Block a user