Skip to content

Commit af1e75f

Browse files
committed
Base commit for using EMSDK 3.1.74 (LTO disabled)
1 parent 444fceb commit af1e75f

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
[submodule "cmake/external/emsdk"]
88
path = cmake/external/emsdk
99
url = https://github.com/emscripten-core/emsdk.git
10-
branch = 3.1.59
10+
branch = 3.1.74

cgmanifests/generated/cgmanifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"component": {
77
"type": "git",
88
"git": {
9-
"commitHash": "d52c46520124845b1e0e0525f2759299d840143f",
9+
"commitHash": "3d6d8ee910466516a53e665b86458faa81dae9ba",
1010
"repositoryUrl": "https://github.com/emscripten-core/emsdk.git"
1111
},
1212
"comments": "git submodule at cmake/external/emsdk"

cmake/adjust_global_compile_flags.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
2929
# (2) "-flto=thin" does not work correctly for wasm-ld.
3030
# we don't set onnxruntime_ENABLE_LTO because it appends flag "-flto=thin"
3131
# instead, we manually set CMAKE_CXX_FLAGS "-flto"
32-
string(APPEND CMAKE_C_FLAGS " -flto")
33-
string(APPEND CMAKE_CXX_FLAGS " -flto")
32+
#string(APPEND CMAKE_C_FLAGS " -flto")
33+
#string(APPEND CMAKE_CXX_FLAGS " -flto")
3434
endif()
3535

3636
if (onnxruntime_ENABLE_WEBASSEMBLY_DEBUG_INFO)
@@ -372,4 +372,4 @@ endif()
372372

373373
if (onnxruntime_USE_EXTENSIONS)
374374
include_directories(${REPO_ROOT}/include/onnxruntime/core/session)
375-
endif()
375+
endif()

tools/ci_build/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def convert_arg_line_to_args(self, arg_line):
478478
# WebAssembly build
479479
parser.add_argument("--build_wasm", action="store_true", help="Build for WebAssembly")
480480
parser.add_argument("--build_wasm_static_lib", action="store_true", help="Build for WebAssembly static library")
481-
parser.add_argument("--emsdk_version", default="3.1.59", help="Specify version of emsdk")
481+
parser.add_argument("--emsdk_version", default="3.1.74", help="Specify version of emsdk")
482482

483483
parser.add_argument("--enable_wasm_simd", action="store_true", help="Enable WebAssembly SIMD")
484484
parser.add_argument("--enable_wasm_threads", action="store_true", help="Enable WebAssembly multi-threads support")

tools/ci_build/github/azure-pipelines/templates/linux-wasm-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ jobs:
8686
- script: |
8787
set -ex
8888
cd '$(Build.SourcesDirectory)/cmake/external/emsdk'
89-
./emsdk install 3.1.59 ccache-git-emscripten-64bit
90-
./emsdk activate 3.1.59 ccache-git-emscripten-64bit
89+
./emsdk install 3.1.74 ccache-git-emscripten-64bit
90+
./emsdk activate 3.1.74 ccache-git-emscripten-64bit
9191
displayName: 'emsdk install and activate ccache for emscripten'
9292
- ${{if eq(parameters.WithCache, false)}}:
9393
- script: |
9494
set -ex
9595
cd '$(Build.SourcesDirectory)/cmake/external/emsdk'
96-
./emsdk install 3.1.59
97-
./emsdk activate 3.1.59
96+
./emsdk install 3.1.74
97+
./emsdk activate 3.1.74
9898
displayName: 'emsdk install and activate ccache for emscripten'
9999
100100
- template: build-linux-wasm-step.yml

0 commit comments

Comments
 (0)