Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
[submodule "cmake/external/emsdk"]
path = cmake/external/emsdk
url = https://github.com/emscripten-core/emsdk.git
branch = 4.0.11
branch = 4.0.21
2 changes: 1 addition & 1 deletion tools/ci_build/build_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def add_webassembly_args(parser: argparse.ArgumentParser) -> None:
"""Adds arguments for WebAssembly (WASM) platform builds."""
parser.add_argument("--build_wasm", action="store_true", help="Build for WebAssembly.")
parser.add_argument("--build_wasm_static_lib", action="store_true", help="Build WebAssembly static library.")
parser.add_argument("--emsdk_version", default="4.0.11", help="Specify version of emsdk.")
parser.add_argument("--emsdk_version", default="4.0.21", help="Specify version of emsdk.")
parser.add_argument(
"--enable_wasm_jspi", action="store_true", help="Enable WebAssembly JavaScript Promise Integration."
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ jobs:
- script: |
set -ex
cd '$(Build.SourcesDirectory)/cmake/external/emsdk'
./emsdk install 4.0.11 ccache-git-emscripten-64bit
./emsdk activate 4.0.11 ccache-git-emscripten-64bit
./emsdk install 4.0.21 ccache-git-emscripten-64bit
./emsdk activate 4.0.21 ccache-git-emscripten-64bit
displayName: 'emsdk install and activate ccache for emscripten'
- ${{if eq(parameters.WithCache, false)}}:
- script: |
set -ex
cd '$(Build.SourcesDirectory)/cmake/external/emsdk'
./emsdk install 4.0.11
./emsdk activate 4.0.11
./emsdk install 4.0.21
./emsdk activate 4.0.21
displayName: 'emsdk install and activate ccache for emscripten'

- template: build-linux-wasm-step.yml
Expand Down
18 changes: 17 additions & 1 deletion tools/python/util/vcpkg_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,25 @@ def add_port_configs(f, has_exception: bool, is_emscripten: bool, enable_minimal
list(APPEND VCPKG_CMAKE_CONFIGURE_OPTIONS
"-DBENCHMARK_ENABLE_WERROR=OFF"
)
endif()
"""
)
if (is_emscripten):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (is_emscripten):
if is_emscripten:

# workaround for https://github.com/google/benchmark/issues/2057
f.write(
r"""
string(APPEND VCPKG_C_FLAGS
" -Wno-c2y-extensions"
)
string(APPEND VCPKG_CXX_FLAGS
" -Wno-c2y-extensions"
)
"""
)
f.write(r"""
endif() # benchmark
"""
)
Comment on lines +43 to +44
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""
)
""")


f.write(
r"""if(PORT MATCHES "date")
list(APPEND VCPKG_CMAKE_CONFIGURE_OPTIONS
Expand Down
Loading