Skip to content

Commit

Permalink
capi: fix sanitizer build after PR 1978 (#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat authored Apr 22, 2024
1 parent 109b0c5 commit 991d543
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmd/capi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ set(PRIVATE_LIBS

target_link_libraries(execute PRIVATE ${PRIVATE_LIBS})

# Target 'capi_main' is used to check that Silkworm C API header passes pure C compilation
add_executable(capi_main main.c)
target_link_libraries(capi_main PRIVATE silkworm_capi)
# Target 'capi_main' is used to check that Silkworm C API header passes pure C compilation (avoid this target in
# sanitizer build due to linking errors w/ libFuzzingEngine dependencies)
if(NOT SILKWORM_SANITIZE)
add_executable(capi_main main.c)
target_link_libraries(capi_main PRIVATE silkworm_capi)
endif()

0 comments on commit 991d543

Please sign in to comment.