You've already forked godot
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user