Skip to content

Commit dd1f975

Browse files
committed
FIX : Enable ARM64 triggers on Apple Silicon Macs
1 parent 1e02b52 commit dd1f975

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

CoreAudioFuzz/jackalope-modifications/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ set (CMAKE_CXX_STANDARD 17)
1717

1818
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Jackalope)
1919

20+
if(APPLE)
21+
# If the active architecture is arm64 (Apple Silicon), define the same macros
22+
# Jackalope uses so <tinyinst.h> selects the correct code paths.
23+
if("${CMAKE_OSX_ARCHITECTURES}" MATCHES "arm64" OR
24+
CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64")
25+
message(STATUS "Configuring CoreAudioFuzz for Apple Silicon (arm64)")
26+
add_definitions(-D__arm64__=1 -D__aarch64__=1 -DARM64=1)
27+
endif()
28+
endif()
29+
2030
add_subdirectory(Jackalope)
2131

2232
add_executable(coreaudiofuzzer

0 commit comments

Comments
 (0)