mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
Fix lto bug for protobuf and ubuntu
This commit is contained in:
parent
62de8fa841
commit
6e08efa6a2
1 changed files with 6 additions and 0 deletions
|
|
@ -279,6 +279,12 @@ else()
|
|||
add_library(protobuf::libprotobuf ALIAS libprotobuf-lite)
|
||||
endif()
|
||||
add_executable(protobuf::protoc ALIAS protoc)
|
||||
|
||||
if(UNIX AND onnxruntime_ENABLE_LTO)
|
||||
#https://github.com/protocolbuffers/protobuf/issues/5923
|
||||
target_link_options(protoc PRIVATE "-Wl,--no-as-needed")
|
||||
endif()
|
||||
|
||||
include(protobuf_function.cmake)
|
||||
|
||||
if (onnxruntime_DISABLE_CONTRIB_OPS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue