Skip to content

Commit

Permalink
Add env.Depends to modules_enabled.gen.h generator
Browse files Browse the repository at this point in the history
Sometimes scons doesn't detects that a new module is being added. This commit fix it.
  • Loading branch information
AndreaCatania committed May 5, 2021
1 parent cba3b02 commit b667e72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env_modules = env.Clone()
Export("env_modules")

# Header with MODULE_*_ENABLED defines.
env.Depends("modules_enabled.gen.h", Value(env.module_list))
env.CommandNoCache(
"modules_enabled.gen.h",
Value(env.module_list),
Expand All @@ -23,6 +24,7 @@ env.CommandNoCache(

# Header to be included in `tests/test_main.cpp` to run module-specific tests.
if env["tests"]:
env.Depends("modules_tests.gen.h", Value(env.module_list))
env.CommandNoCache(
"modules_tests.gen.h",
Value(env.module_list),
Expand Down

0 comments on commit b667e72

Please sign in to comment.