parent
e7208420bc
commit
b064008c07
2 changed files with 7 additions and 2 deletions
4
.github/workflows/web_builds.yml
vendored
4
.github/workflows/web_builds.yml
vendored
|
@ -7,7 +7,7 @@ env:
|
||||||
# Used for the cache key. Add version suffix to force clean build.
|
# Used for the cache key. Add version suffix to force clean build.
|
||||||
GODOT_BASE_BRANCH: master
|
GODOT_BASE_BRANCH: master
|
||||||
SCONSFLAGS: verbose=yes warnings=extra werror=yes debug_symbols=no
|
SCONSFLAGS: verbose=yes warnings=extra werror=yes debug_symbols=no
|
||||||
EM_VERSION: 3.1.18
|
EM_VERSION: 3.1.45
|
||||||
EM_CACHE_FOLDER: "emsdk-cache"
|
EM_CACHE_FOLDER: "emsdk-cache"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
@ -16,7 +16,7 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
web-template:
|
web-template:
|
||||||
runs-on: "ubuntu-20.04"
|
runs-on: "ubuntu-22.04"
|
||||||
name: Template (target=template_release)
|
name: Template (target=template_release)
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -118,6 +118,11 @@ def configure(env: "Environment"):
|
||||||
else:
|
else:
|
||||||
env.Append(CCFLAGS=["-flto"])
|
env.Append(CCFLAGS=["-flto"])
|
||||||
env.Append(LINKFLAGS=["-flto"])
|
env.Append(LINKFLAGS=["-flto"])
|
||||||
|
# Workaround https://github.com/emscripten-core/emscripten/issues/19781.
|
||||||
|
cc_version = get_compiler_version(env)
|
||||||
|
cc_semver = (int(cc_version["major"]), int(cc_version["minor"]), int(cc_version["patch"]))
|
||||||
|
if cc_semver >= (3, 1, 42):
|
||||||
|
env.Append(LINKFLAGS=["-Wl,-u,scalbnf"])
|
||||||
|
|
||||||
# Sanitizers
|
# Sanitizers
|
||||||
if env["use_ubsan"]:
|
if env["use_ubsan"]:
|
||||||
|
|
Loading…
Reference in a new issue