1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-23 06:58:31 +00:00

fix bug on Makefile with detection of Apple Silicon systems

This commit is contained in:
Gabriele Gristina 2025-07-11 00:53:06 +02:00
parent a8bafcc64e
commit 1d4d9db45b
No known key found for this signature in database
GPG Key ID: 9F68B59298F311F0

View File

@ -85,7 +85,7 @@ AR := /usr/bin/ar
SED := /usr/bin/sed
SED_IN_PLACE := -i ""
DARWIN_VERSION := $(shell uname -r | cut -d. -f1)
IS_APPLE_SILICON := $(shell lipo /bin/zsh -verify_arch arm64e && echo 1 || echo 0)
IS_APPLE_SILICON := $(shell [ "$$(sysctl -in hw.optional.arm64 2>/dev/null)" = "1" ] && echo 1 || echo 0)
endif
ifneq (,$(filter $(UNAME),FreeBSD NetBSD))
@ -237,8 +237,10 @@ CFLAGS_UNRAR += -Wno-class-memaccess
CFLAGS_UNRAR += -Wno-misleading-indentation
CFLAGS_UNRAR += -Wno-format-overflow
else
ifeq ($(IS_APPLE_SILICON),0)
CFLAGS_UNRAR += -Wno-nontrivial-memcall
endif
endif
CFLAGS_UNRAR += -Wno-missing-braces
CFLAGS_UNRAR += -Wno-unused-variable
CFLAGS_UNRAR += -Wno-unused-parameter