Skip to content

Commit

Permalink
Added a warning for building SEAL_C with HEXL in Unix+Debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei Dai committed Nov 12, 2021
1 parent ac4715c commit c1cf3ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,11 @@ if(SEAL_BUILD_SEAL_C)
message(FATAL_ERROR "SEAL_C requires `SEAL_BUILD_DEPS=ON`")
endif()

if(NOT SEAL_BUILD_STATIC_SEAL_C AND SEAL_USE_INTEL_HEXL AND CMAKE_BUILD_TYPE STREQUAL "Debug" AND UNIX)
message(WARNING "SEAL_C (shared) cannot find Address Sanitizer (libasan) enabled by Intel HEXL in Debug mode "
"on Unix-like systems. SEALNet does not work. Preload libasan for downstream applications.")
endif()

if(SEAL_BUILD_STATIC_SEAL_C)
add_library(sealc STATIC)
else()
Expand Down

0 comments on commit c1cf3ba

Please sign in to comment.