Build: Remove redundant SCons environment clones

This commit is contained in:
dillyo09
2026-04-15 01:30:23 -07:00
parent 90113707f2
commit f313fa9a06
8 changed files with 8 additions and 24 deletions
+1 -3
View File
@@ -3,6 +3,4 @@ from misc.utility.scons_hints import *
Import("env")
env_config = env.Clone()
env_config.add_source_files(env.core_sources, "*.cpp")
env.add_source_files(env.core_sources, "*.cpp")
+1 -3
View File
@@ -3,6 +3,4 @@ from misc.utility.scons_hints import *
Import("env")
env_error = env.Clone()
env_error.add_source_files(env.core_sources, "*.cpp")
env.add_source_files(env.core_sources, "*.cpp")
+1 -3
View File
@@ -19,6 +19,4 @@ env.CommandNoCache(
env.Run(make_interface_header.run),
)
env_extension = env.Clone()
env_extension.add_source_files(env.core_sources, "*.cpp")
env.add_source_files(env.core_sources, "*.cpp")
+1 -3
View File
@@ -3,6 +3,4 @@ from misc.utility.scons_hints import *
Import("env")
env_math = env.Clone()
env_math.add_source_files(env.core_sources, "*.cpp")
env.add_source_files(env.core_sources, "*.cpp")
+1 -3
View File
@@ -7,6 +7,4 @@ import make_virtuals
env.CommandNoCache("gdvirtual.gen.h", "make_virtuals.py", env.Run(make_virtuals.run))
env_object = env.Clone()
env_object.add_source_files(env.core_sources, "*.cpp")
env.add_source_files(env.core_sources, "*.cpp")
+1 -3
View File
@@ -3,6 +3,4 @@ from misc.utility.scons_hints import *
Import("env")
env_string = env.Clone()
env_string.add_source_files(env.core_sources, "*.cpp")
env.add_source_files(env.core_sources, "*.cpp")
+1 -3
View File
@@ -3,6 +3,4 @@ from misc.utility.scons_hints import *
Import("env")
env_templates = env.Clone()
env_templates.add_source_files(env.core_sources, "*.cpp")
env.add_source_files(env.core_sources, "*.cpp")
+1 -3
View File
@@ -3,6 +3,4 @@ from misc.utility.scons_hints import *
Import("env")
env_variant = env.Clone()
env_variant.add_source_files(env.core_sources, "*.cpp")
env.add_source_files(env.core_sources, "*.cpp")