Skip to content

Commit

Permalink
cmake: disable luaL_loadbuffer_proto on OSS Fuzz/aarch64
Browse files Browse the repository at this point in the history
Part of #72
  • Loading branch information
ligurio committed Jan 11, 2024
1 parent 50d979a commit 36cc7a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
set(CMAKE_INCLUDE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_INCLUDE_PATH})

include(SetBuildParallelLevel)
include(SetHardwareArch)

if (ENABLE_LUAJIT_RANDOM_RA AND NOT USE_LUAJIT)
message(FATAL_ERROR "Option ENABLE_LUAJIT_RANDOM_RA is LuaJIT-specific.")
Expand Down
8 changes: 6 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,9 @@ foreach(filename ${tests})
LIBRARIES "")
endforeach()

include(ProtobufMutator)
add_subdirectory(luaL_loadbuffer_proto)
# OSS Fuzz build is broken on aarch64,
# https://github.com/ligurio/lua-c-api-tests/issues/72
if (NOT OSS_FUZZ AND NOT ARCH STREQUAL "aarch64")
include(ProtobufMutator)
add_subdirectory(luaL_loadbuffer_proto)
endif ()

0 comments on commit 36cc7a0

Please sign in to comment.