mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 02:13:36 +00:00
Web: Workaround Emscripten 3.1.42+ LTO regression
Fixes #80010.
(cherry picked from commit b064008c07)
This commit is contained in:
parent
cb0ee90fde
commit
c88a8f96b4
2 changed files with 6 additions and 2 deletions
|
|
@ -111,6 +111,10 @@ def configure(env):
|
|||
else:
|
||||
env.Append(CCFLAGS=["-flto"])
|
||||
env.Append(LINKFLAGS=["-flto"])
|
||||
# Workaround https://github.com/emscripten-core/emscripten/issues/19781.
|
||||
cc_semver = tuple(get_compiler_version(env))
|
||||
if cc_semver >= (3, 1, 42):
|
||||
env.Append(LINKFLAGS=["-Wl,-u,scalbnf"])
|
||||
|
||||
# Sanitizers
|
||||
if env["use_ubsan"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue