mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-08 17:17:15 +00:00
Fix a build warning in onnxruntime python extension (#416)
This commit is contained in:
parent
d369ff945d
commit
9f0298261d
2 changed files with 5 additions and 0 deletions
|
|
@ -49,6 +49,8 @@ if(APPLE)
|
|||
set(ONNXRUNTIME_SO_LINK_FLAG "-Xlinker -exported_symbols_list ${ONNXRUNTIME_ROOT}/python/exported_symbols.lst")
|
||||
elseif(UNIX)
|
||||
set(ONNXRUNTIME_SO_LINK_FLAG "-Xlinker --version-script=${ONNXRUNTIME_ROOT}/python/version_script.lds -Xlinker --no-undefined")
|
||||
else()
|
||||
set(ONNXRUNTIME_SO_LINK_FLAG "-DEF:${ONNXRUNTIME_ROOT}/python/pybind.def")
|
||||
endif()
|
||||
|
||||
set(onnxruntime_pybind11_state_libs
|
||||
|
|
|
|||
3
onnxruntime/python/pybind.def
Normal file
3
onnxruntime/python/pybind.def
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
LIBRARY "onnxruntime_pybind11_state.pyd"
|
||||
EXPORTS
|
||||
PyInit_onnxruntime_pybind11_state @1
|
||||
Loading…
Reference in a new issue