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:
parent
a8bafcc64e
commit
1d4d9db45b
@ -85,7 +85,7 @@ AR := /usr/bin/ar
|
|||||||
SED := /usr/bin/sed
|
SED := /usr/bin/sed
|
||||||
SED_IN_PLACE := -i ""
|
SED_IN_PLACE := -i ""
|
||||||
DARWIN_VERSION := $(shell uname -r | cut -d. -f1)
|
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
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter $(UNAME),FreeBSD NetBSD))
|
ifneq (,$(filter $(UNAME),FreeBSD NetBSD))
|
||||||
@ -237,8 +237,10 @@ CFLAGS_UNRAR += -Wno-class-memaccess
|
|||||||
CFLAGS_UNRAR += -Wno-misleading-indentation
|
CFLAGS_UNRAR += -Wno-misleading-indentation
|
||||||
CFLAGS_UNRAR += -Wno-format-overflow
|
CFLAGS_UNRAR += -Wno-format-overflow
|
||||||
else
|
else
|
||||||
|
ifeq ($(IS_APPLE_SILICON),0)
|
||||||
CFLAGS_UNRAR += -Wno-nontrivial-memcall
|
CFLAGS_UNRAR += -Wno-nontrivial-memcall
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
CFLAGS_UNRAR += -Wno-missing-braces
|
CFLAGS_UNRAR += -Wno-missing-braces
|
||||||
CFLAGS_UNRAR += -Wno-unused-variable
|
CFLAGS_UNRAR += -Wno-unused-variable
|
||||||
CFLAGS_UNRAR += -Wno-unused-parameter
|
CFLAGS_UNRAR += -Wno-unused-parameter
|
||||||
|
Loading…
Reference in New Issue
Block a user