Fix FRIDA mode for OSX arm64
@@ -98,6 +98,16 @@ ifeq "$(shell uname)" "Darwin"
OS:=macos
AFL_CFLAGS:=$(AFL_CFLAGS) -Wno-deprecated-declarations
GUM_ARCH:=""
+ ifeq "$(ARCH)" "arm64"
+ TARGET_CC= \
+ "clang" \
+ "-target" \
+ "arm64-apple-macos10.9"
+ TARGET_CXX= \
+ "clang++" \
+ "-target" \
+ "arm64-apple-macos10.9"
+ else
TARGET_CC= \
"clang" \
"-target" \
@@ -106,6 +116,7 @@ ifeq "$(shell uname)" "Darwin"
"clang++" \
"-target" \
"x86_64-apple-macos10.9"
+ endif
else
ifdef DEBUG
AFL_CFLAGS:=$(AFL_CFLAGS) -Wno-prio-ctor-dtor
