From 76d22b1afc551c1b78aa76d7cf32ee72bc587922 Mon Sep 17 00:00:00 2001 From: Matthias Volk Date: Fri, 20 Oct 2017 14:17:51 +0200 Subject: [PATCH] Disabled LTO to avoid segfaults --- resources/pybind11/tools/pybind11Tools.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/pybind11/tools/pybind11Tools.cmake b/resources/pybind11/tools/pybind11Tools.cmake index 8726ce9..f8d7faf 100755 --- a/resources/pybind11/tools/pybind11Tools.cmake +++ b/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 if (PYBIND11_LTO_CXX_FLAGS) - target_compile_options(${target_name} PRIVATE "$<$>:${PYBIND11_LTO_CXX_FLAGS}>") + #target_compile_options(${target_name} PRIVATE "$<$>:${PYBIND11_LTO_CXX_FLAGS}>") endif() if (PYBIND11_LTO_LINKER_FLAGS) target_link_libraries(${target_name} PRIVATE "$<$>:${PYBIND11_LTO_LINKER_FLAGS}>")