From c422854c6e8562d609f6979ce84384342e9728d5 Mon Sep 17 00:00:00 2001 From: gwang Date: Thu, 17 Dec 2020 12:43:00 -0800 Subject: [PATCH] Remove ignored build warnings for pybind on Mac --- cmake/onnxruntime_python.cmake | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cmake/onnxruntime_python.cmake b/cmake/onnxruntime_python.cmake index f6b2e2f2f32d4..aaf990d4be0b2 100644 --- a/cmake/onnxruntime_python.cmake +++ b/cmake/onnxruntime_python.cmake @@ -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)