Skip to content

Commit 47b9bfc

Browse files
committed
[tool]Fix the issue where using the command "scons --target=eclipse" would rename the project name to "project".
1 parent 1254af4 commit 47b9bfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/building.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,8 @@ def GenTargetProject(program = None):
869869

870870
if GetOption('target') == 'eclipse':
871871
from targets.eclipse import TargetEclipse
872-
TargetEclipse(Env, GetOption('reset-project-config'), GetOption('project-name'))
872+
project_name = os.path.basename(Dir('#').abspath)
873+
TargetEclipse(Env, GetOption('reset-project-config'), project_name)
873874

874875
if GetOption('target') == 'codelite':
875876
from targets.codelite import TargetCodelite

0 commit comments

Comments
 (0)