mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-13 18:08:13 +00:00
Enable LTO
This commit is contained in:
parent
c3cab12fd6
commit
df3562e874
1 changed files with 2 additions and 2 deletions
|
|
@ -29,8 +29,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
|
|||
# (2) "-flto=thin" does not work correctly for wasm-ld.
|
||||
# we don't set onnxruntime_ENABLE_LTO because it appends flag "-flto=thin"
|
||||
# instead, we manually set CMAKE_CXX_FLAGS "-flto"
|
||||
#string(APPEND CMAKE_C_FLAGS " -flto")
|
||||
#string(APPEND CMAKE_CXX_FLAGS " -flto")
|
||||
string(APPEND CMAKE_C_FLAGS " -flto")
|
||||
string(APPEND CMAKE_CXX_FLAGS " -flto")
|
||||
endif()
|
||||
|
||||
if (onnxruntime_ENABLE_WEBASSEMBLY_DEBUG_INFO)
|
||||
|
|
|
|||
Loading…
Reference in a new issue