Skip to content

Commit

Permalink
Commenting out PYBIND11_WERROR block, for noinline testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Aug 11, 2021
1 parent 9228524 commit 162f9b6
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -298,22 +298,22 @@ function(pybind11_enable_warnings target_name)
-Wnon-virtual-dtor)
endif()

if(PYBIND11_WERROR)
if(MSVC)
target_compile_options(${target_name} PRIVATE /WX)
elseif(PYBIND11_CUDA_TESTS)
target_compile_options(${target_name} PRIVATE "SHELL:-Werror all-warnings")
elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang|IntelLLVM)")
target_compile_options(${target_name} PRIVATE -Werror)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
target_compile_options(
${target_name}
PRIVATE
-Werror-all
# "Inlining inhibited by limit max-size", "Inlining inhibited by limit max-total-size"
-diag-disable 11074,11076)
endif()
endif()
#if(PYBIND11_WERROR)
# if(MSVC)
# target_compile_options(${target_name} PRIVATE /WX)
# elseif(PYBIND11_CUDA_TESTS)
# target_compile_options(${target_name} PRIVATE "SHELL:-Werror all-warnings")
# elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang|IntelLLVM)")
# target_compile_options(${target_name} PRIVATE -Werror)
# elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
# target_compile_options(
# ${target_name}
# PRIVATE
# -Werror-all
# # "Inlining inhibited by limit max-size", "Inlining inhibited by limit max-total-size"
# -diag-disable 11074,11076)
# endif()
#endif()

# Needs to be re-added since the ordering requires these to be after the ones above
if(CMAKE_CXX_STANDARD
Expand Down

0 comments on commit 162f9b6

Please sign in to comment.