Skip to content

Commit

Permalink
Enable fuzz to run on non-x86_64 platforms & fix fuzz warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed May 7, 2024
1 parent 129a195 commit ac47e3f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fuzz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ add_compile_definitions(TEST)
add_definitions("-DIO_SEPROXYHAL_BUFFER_SIZE_B=128") # cmake -DIO_SEPROXYHAL_BUFFER_SIZE_B=128
add_definitions("-DTARGET_NANOS=1")

add_library(bsd STATIC IMPORTED)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
set_property(TARGET bsd PROPERTY IMPORTED_LOCATION /lib/x86_64-linux-gnu/libbsd.a)
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
set_property(TARGET bsd PROPERTY IMPORTED_LOCATION /lib/aarch64-linux-gnu/libbsd.a)
else()
message(FATAL_ERROR "Unsupported platform: ${CMAKE_SYSTEM_PROCESSOR}")
endif()

include_directories(../libstellar/include)
include_directories(${BOLOS_SDK}/lib_standard_app)

Expand Down

0 comments on commit ac47e3f

Please sign in to comment.