1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

[Web] Add library emitter to make sources dependent of compiler version

This commit is contained in:
Adam Scott
2025-02-10 16:08:02 -05:00
parent 261e7d32d3
commit 02cc1ec95b
2 changed files with 26 additions and 3 deletions

View File

@@ -89,7 +89,17 @@ def get_flags():
}
def library_emitter(target, source, env):
# Make every source file dependent on the compiler version.
# This makes sure that when emscripten is updated, that the cached files
# aren't used and are recompiled instead.
env.Depends(source, env.Value(get_compiler_version(env)))
return target, source
def configure(env: "SConsEnvironment"):
env.Append(LIBEMITTER=library_emitter)
# Validate arch.
supported_arches = ["wasm32"]
validate_arch(env["arch"], get_name(), supported_arches)