From 9c7559f0ba2fa77b8663874e0e4daf5d52ed07da Mon Sep 17 00:00:00 2001 From: Dmitriy Suponitskiy Date: Thu, 24 Oct 2024 10:46:28 -0400 Subject: [PATCH] Disabled a compiler flag --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19caef5..046b2db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,14 @@ endif() find_package(OpenFHE 1.2.1 REQUIRED) find_package(pybind11 REQUIRED) -set( CMAKE_CXX_FLAGS ${OpenFHE_CXX_FLAGS} ) +# set( CMAKE_CXX_FLAGS "${OpenFHE_CXX_FLAGS} -Wno-error=stringop-overread") +# set( CMAKE_CXX_FLAGS "${OpenFHE_CXX_FLAGS} -fno-lto") +# message(STATUS "================ CMAKE_CXX_FLAGS : ${CMAKE_CXX_FLAGS}") +# message(STATUS "================ CMAKE_EXE_LINKER_FLAGS: ${CMAKE_EXE_LINKER_FLAGS}") +set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF) +# string(REPLACE "-flto" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") +# string(REPLACE "-flto" "" CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}") + set( OpenFHE_Py_SOURCES src/lib) set( OpenFHE_Py_INCLUDES src/include)