From 646ccdf4701c9efde96712c4695e55be4065ea57 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Wed, 18 Jun 2025 14:43:12 -0500 Subject: [PATCH] Files generated by SCons should depend on the `build_profile` (if given) --- tools/godotcpp.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/godotcpp.py b/tools/godotcpp.py index 63df0ad54..fa78ecd15 100644 --- a/tools/godotcpp.py +++ b/tools/godotcpp.py @@ -141,7 +141,12 @@ def scons_emit_files(target, source, env): env.Clean(target, [env.File(f) for f in get_file_list(str(source[0]), target[0].abspath, True, True)]) api = generate_trimmed_api(str(source[0]), profile_filepath) - files = [env.File(f) for f in _get_file_list(api, target[0].abspath, True, True)] + files = [] + for f in _get_file_list(api, target[0].abspath, True, True): + file = env.File(f) + if profile_filepath: + env.Depends(file, profile_filepath) + files.append(file) env["godot_cpp_gen_dir"] = target[0].abspath return files, source