From dc1c5b4ba3778d30d216eac393ef2432eb9d7a62 Mon Sep 17 00:00:00 2001 From: yans <3083236317@qq.com> Date: Fri, 6 Feb 2026 18:06:24 +0800 Subject: [PATCH] [tool]Fix the issue where using the command "scons --target=eclipse" would rename the project name to "project". --- tools/building.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/building.py b/tools/building.py index b0b4c144c6..6b8c350d7f 100644 --- a/tools/building.py +++ b/tools/building.py @@ -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