Skip to content

Commit c339bb2

Browse files
authored
Remove ignored build warnings for pybind on Mac (#6165)
1 parent 98d8a3e commit c339bb2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

cmake/onnxruntime_python.cmake

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ if (onnxruntime_ENABLE_TRAINING)
7474
target_include_directories(onnxruntime_pybind11_state PRIVATE ${ORTTRAINING_ROOT})
7575
endif()
7676

77-
# Disable certain pybind11 warnings while building using AppleClang 12 on macOS
78-
# TODO, remove this after switch to pybind11 2.6.0+
79-
if(APPLE AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "AppleClang" AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL 12.0)
80-
# https://github.com/pybind/pybind11/pull/2522
81-
target_compile_options(onnxruntime_pybind11_state PRIVATE "-Wno-range-loop-analysis")
82-
# https://github.com/pybind/pybind11/pull/2294
83-
target_compile_options(onnxruntime_pybind11_state PRIVATE "-Wno-unused-value")
84-
endif()
85-
8677
if(APPLE)
8778
set(ONNXRUNTIME_SO_LINK_FLAG "-Xlinker -exported_symbols_list ${ONNXRUNTIME_ROOT}/python/exported_symbols.lst")
8879
elseif(UNIX)

0 commit comments

Comments
 (0)