From b667e72adf372321775a45b56114b74d5d6da2a5 Mon Sep 17 00:00:00 2001 From: Andrea Catania Date: Wed, 5 May 2021 11:35:33 +0200 Subject: Add env.Depends to modules_enabled.gen.h generator Sometimes scons doesn't detects that a new module is being added. This commit fix it. --- modules/SCsub | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/SCsub') diff --git a/modules/SCsub b/modules/SCsub index 64da3bd0be..5ff4623743 100644 --- a/modules/SCsub +++ b/modules/SCsub @@ -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), @@ -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), -- cgit v1.2.3