Skip to content

Commit 646ccdf

Browse files
committed
Files generated by SCons should depend on the build_profile (if given)
1 parent 5cbffab commit 646ccdf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/godotcpp.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,12 @@ def scons_emit_files(target, source, env):
141141
env.Clean(target, [env.File(f) for f in get_file_list(str(source[0]), target[0].abspath, True, True)])
142142

143143
api = generate_trimmed_api(str(source[0]), profile_filepath)
144-
files = [env.File(f) for f in _get_file_list(api, target[0].abspath, True, True)]
144+
files = []
145+
for f in _get_file_list(api, target[0].abspath, True, True):
146+
file = env.File(f)
147+
if profile_filepath:
148+
env.Depends(file, profile_filepath)
149+
files.append(file)
145150
env["godot_cpp_gen_dir"] = target[0].abspath
146151
return files, source
147152

0 commit comments

Comments
 (0)