You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-30 16:26:50 +00:00
Web: Workaround Emscripten 3.1.42+ LTO regression
Fixes #80010.
(cherry picked from commit b064008c07)
This commit is contained in:
@@ -108,6 +108,12 @@ def configure(env):
|
|||||||
env.Append(CCFLAGS=["-flto=full"])
|
env.Append(CCFLAGS=["-flto=full"])
|
||||||
env.Append(LINKFLAGS=["-flto=full"])
|
env.Append(LINKFLAGS=["-flto=full"])
|
||||||
|
|
||||||
|
if env["use_thinlto"] or env["use_lto"]:
|
||||||
|
# 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
|
# Sanitizers
|
||||||
if env["use_ubsan"]:
|
if env["use_ubsan"]:
|
||||||
env.Append(CCFLAGS=["-fsanitize=undefined"])
|
env.Append(CCFLAGS=["-fsanitize=undefined"])
|
||||||
|
|||||||
Reference in New Issue
Block a user