chore: add CMake option for EV64

This commit is contained in:
Andrew Johnston 2026-02-18 00:50:30 +00:00
parent 9da40101c7
commit 8dd6969c54

View File

@ -46,6 +46,11 @@ option(MSAN "Enable MemorySanitizer (MSan)" OFF)
option(TSAN "Enable ThreadSanitizer (TSan)" OFF)
option(UBSAN "Enable UndefinedBehaviorSanitizer (UBSan)" OFF)
option(USE_EV64 "Enable event64 support with fast return" OFF)
if(APPLE AND USE_EV64)
add_compile_definitions(EV64)
endif()
if(MSAN AND NOT CMAKE_C_COMPILER_ID MATCHES "AppleClang|Clang")
message(SEND_ERROR "MemorySanitizer requires clang. Try again with -DCMAKE_C_COMPILER=clang")
endif()