summaryrefslogtreecommitdiff
path: root/modules/SCsub
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-07-22 13:57:39 +0200
committerRémi Verschelde <rverschelde@gmail.com>2019-07-22 15:08:32 +0200
commit66d09a6b4cae73fbb48fe01082af5397c4a75d9a (patch)
tree052f28156bf8b60e33f928b1d3d32918f6988ab1 /modules/SCsub
parent017b224a87064a3d333ba63809a0f12cfe2c4412 (diff)
SCons: Fix uses of [].append instead of env.add_source_files()
Also added support for SCons project-absolute paths (starting with #) and warning about duplicates in add_source_files(), and fixed default_controller_mappings.gen.cpp being included twice after first build due to *.cpp globbing. Part of #30270.
Diffstat (limited to 'modules/SCsub')
-rw-r--r--modules/SCsub6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/SCsub b/modules/SCsub
index 36c2472c42..42d89d6ce2 100644
--- a/modules/SCsub
+++ b/modules/SCsub
@@ -6,9 +6,9 @@ env_modules = env.Clone()
Export('env_modules')
-env.modules_sources = [
- "register_module_types.gen.cpp",
-]
+env.modules_sources = []
+
+env_modules.add_source_files(env.modules_sources, "register_module_types.gen.cpp")
for x in env.module_list:
if (x in env.disabled_modules):