Fix FRIDA mode for OSX arm64

This commit is contained in:
Your Name
2023-01-25 11:40:36 +00:00
parent b0898de377
commit c52a0a15c8

View File

@ -98,14 +98,25 @@ ifeq "$(shell uname)" "Darwin"
OS:=macos OS:=macos
AFL_CFLAGS:=$(AFL_CFLAGS) -Wno-deprecated-declarations AFL_CFLAGS:=$(AFL_CFLAGS) -Wno-deprecated-declarations
GUM_ARCH:="" GUM_ARCH:=""
ifeq "$(ARCH)" "arm64"
TARGET_CC= \ TARGET_CC= \
"clang" \ "clang" \
"-target" \
"arm64-apple-macos10.9"
TARGET_CXX= \
"clang++" \
"-target" \ "-target" \
"arm64-apple-macos10.9"
else
TARGET_CC= \
"clang" \
"-target" \
"x86_64-apple-macos10.9" "x86_64-apple-macos10.9"
TARGET_CXX= \ TARGET_CXX= \
"clang++" \ "clang++" \
"-target" \ "-target" \
"x86_64-apple-macos10.9" "x86_64-apple-macos10.9"
endif
else else
ifdef DEBUG ifdef DEBUG
AFL_CFLAGS:=$(AFL_CFLAGS) -Wno-prio-ctor-dtor AFL_CFLAGS:=$(AFL_CFLAGS) -Wno-prio-ctor-dtor