We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d115ef commit 516b158Copy full SHA for 516b158
cmake/ccf_app.cmake
@@ -22,6 +22,13 @@ message(STATUS "Compile target platform: ${COMPILE_TARGET}")
22
if(USE_LIBCXX)
23
list(APPEND COMPILE_LIBCXX -stdlib=libc++)
24
list(APPEND LINK_LIBCXX -lc++ -lc++abi -stdlib=libc++)
25
+
26
+ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
27
+ add_compile_options(-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG)
28
+ elseif("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
29
+ add_compile_options(-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST)
30
+ endif()
31
32
endif()
33
34
# Enclave library wrapper
0 commit comments