Skip to content

Commit

Permalink
Disabled a compiler flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuponitskiy-duality committed Oct 24, 2024
1 parent 699678b commit 9c7559f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9c7559f

Please sign in to comment.