Browse Source

Disabled LTO to avoid segfaults

refactoring
Matthias Volk 7 years ago
parent
commit
76d22b1afc
  1. 2
      resources/pybind11/tools/pybind11Tools.cmake

2
resources/pybind11/tools/pybind11Tools.cmake

@ -101,7 +101,7 @@ function(_pybind11_add_lto_flags target_name prefer_thin_lto)
# Enable LTO flags if found, except for Debug builds # Enable LTO flags if found, except for Debug builds
if (PYBIND11_LTO_CXX_FLAGS) if (PYBIND11_LTO_CXX_FLAGS)
target_compile_options(${target_name} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:${PYBIND11_LTO_CXX_FLAGS}>")
#target_compile_options(${target_name} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:${PYBIND11_LTO_CXX_FLAGS}>")
endif() endif()
if (PYBIND11_LTO_LINKER_FLAGS) if (PYBIND11_LTO_LINKER_FLAGS)
target_link_libraries(${target_name} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:${PYBIND11_LTO_LINKER_FLAGS}>") target_link_libraries(${target_name} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:${PYBIND11_LTO_LINKER_FLAGS}>")

Loading…
Cancel
Save