From 47b9bfc3398b3802bb22597a779f99a9a3130707 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 26e13b3f84a..df1c1e04427 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