Skip to content

Commit

Permalink
Move to ccf_app
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtropets committed Jan 17, 2025
1 parent a9e9b9c commit 3cb8919
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 7 additions & 0 deletions cmake/ccf_app.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ message(STATUS "Compile target platform: ${COMPILE_TARGET}")
if(USE_LIBCXX)
list(APPEND COMPILE_LIBCXX -stdlib=libc++)
list(APPEND LINK_LIBCXX -lc++ -lc++abi -stdlib=libc++)

if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
add_compile_options(-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG)
elseif("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
add_compile_options(-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST)
endif()

endif()

# Enclave library wrapper
Expand Down
8 changes: 0 additions & 8 deletions cmake/preproject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,3 @@ if("${COMPILE_TARGET}" STREQUAL "snp" OR "${COMPILE_TARGET}" STREQUAL "virtual")
endif()

set(CMAKE_CXX_STANDARD 20)

if(USE_LIBCXX)
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
add_compile_options(-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG)
elseif("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
add_compile_options(-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST)
endif()
endif()

0 comments on commit 3cb8919

Please sign in to comment.