mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-03 23:49:44 +00:00
Remove ignored build warnings for pybind on Mac (#6165)
This commit is contained in:
parent
98d8a3e335
commit
c339bb2da9
1 changed files with 0 additions and 9 deletions
|
|
@ -74,15 +74,6 @@ if (onnxruntime_ENABLE_TRAINING)
|
|||
target_include_directories(onnxruntime_pybind11_state PRIVATE ${ORTTRAINING_ROOT})
|
||||
endif()
|
||||
|
||||
# Disable certain pybind11 warnings while building using AppleClang 12 on macOS
|
||||
# TODO, remove this after switch to pybind11 2.6.0+
|
||||
if(APPLE AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "AppleClang" AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL 12.0)
|
||||
# https://github.com/pybind/pybind11/pull/2522
|
||||
target_compile_options(onnxruntime_pybind11_state PRIVATE "-Wno-range-loop-analysis")
|
||||
# https://github.com/pybind/pybind11/pull/2294
|
||||
target_compile_options(onnxruntime_pybind11_state PRIVATE "-Wno-unused-value")
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
set(ONNXRUNTIME_SO_LINK_FLAG "-Xlinker -exported_symbols_list ${ONNXRUNTIME_ROOT}/python/exported_symbols.lst")
|
||||
elseif(UNIX)
|
||||
|
|
|
|||
Loading…
Reference in a new issue