diff options
| author | yans <[email protected]> | 2026-02-06 18:06:24 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-02-27 10:42:31 +0800 |
| commit | dc1c5b4ba3778d30d216eac393ef2432eb9d7a62 (patch) | |
| tree | fdde24e91a3f2e2139e6385bb5b5053004a90b70 /tools | |
| parent | d8546a9a0f5d9d7a3c3c10a012dcc1c65b847ccb (diff) | |
[tool]Fix the issue where using the command "scons --target=eclipse" would rename the project name to "project".
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/building.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
