Skip to content

Commit

Permalink
asan
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou committed Jan 7, 2025
1 parent f3a2052 commit abd43d5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,19 @@ endif()
add_custom_target(ccf ALL)

set(CCF_IMPL_SOURCE
${CCF_DIR}/src/host/snmalloc.cpp ${CCF_DIR}/src/enclave/main.cpp
${CCF_DIR}/src/enclave/enclave_time.cpp
${CCF_DIR}/src/enclave/main.cpp ${CCF_DIR}/src/enclave/enclave_time.cpp
${CCF_DIR}/src/enclave/thread_local.cpp ${CCF_DIR}/src/node/quote.cpp
)

if(SAN
OR TSAN
OR NOT USE_SNMALLOC
)
# Do nothing, SNMALLOC_COMPILE_OPTIONS is empty already
else()
list(APPEND CCF_IMPL_SOURCE ${CCF_DIR}/src/host/snmalloc.cpp)
endif()

# Same as virtual for the time being but will diverge soon
if(COMPILE_TARGET STREQUAL "snp")

Expand Down

0 comments on commit abd43d5

Please sign in to comment.