mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 03:46:50 +01:00
Web: Workaround Emscripten 3.1.42+ LTO regression
Fixes #80010. (cherry picked from commit b064008c07be856d6f3a5079d11746137e03ede5)
This commit is contained in:
parent
cb17ff6c1d
commit
51d50bff9b
4
.github/workflows/javascript_builds.yml
vendored
4
.github/workflows/javascript_builds.yml
vendored
@ -5,7 +5,7 @@ on: [push, pull_request]
|
||||
env:
|
||||
PANDEMONIUM_BASE_BRANCH: master
|
||||
SCONSFLAGS: verbose=yes warnings=all debug_symbols=no werror=yes
|
||||
EM_VERSION: 3.1.18
|
||||
EM_VERSION: 3.1.45
|
||||
EM_CACHE_FOLDER: "emsdk-cache"
|
||||
|
||||
concurrency:
|
||||
@ -14,7 +14,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
javascript-template:
|
||||
runs-on: "ubuntu-20.04"
|
||||
runs-on: "ubuntu-22.04"
|
||||
name: Template (target=release, tools=no)
|
||||
|
||||
steps:
|
||||
|
@ -105,6 +105,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…
Reference in New Issue
Block a user