1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-23 23:18:21 +00:00

Merge pull request #4109 from matrix/makefile-clangIdentification

Fixed clang identification in src/Makefile
This commit is contained in:
Jens Steube 2025-06-22 20:29:50 +02:00 committed by GitHub
commit 13f48e563d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 4 deletions

View File

@ -94,6 +94,7 @@
- Fixed build failed for 18400 with Apple Metal
- Fixed build failed for 18600 with Apple Metal
- Fixed build failed for 4410 with vector width > 1
- Fixed clang identification in src/Makefile
- Fixed build failure for almost all hash modes that make use of hc_swap64 and/or hc_swap64_S with Apple Metal / Apple Silicon
- Fixed debug mode 5 by adding the missing colon between original-word and finding-rule
- Fixed display problem of the "Optimizers applied" list for algorithms using OPTI_TYPE_SLOW_HASH_SIMD_INIT2 and/or OPTI_TYPE_SLOW_HASH_SIMD_LOOP2

View File

@ -37,6 +37,8 @@ endif
ifeq ($(DEBUG),1)
$(info "## Detected Operating System : $(UNAME)")
$(info "## Detected CC : $(CC)")
$(info "## Detected CXX : $(CXX)")
endif
BUILD_MODE := native
@ -197,15 +199,17 @@ CFLAGS += -Wextra
endif
## because LZMA SDK
ifeq ($(CC),clang)
#No longer supported in clang 10.0.0
#CFLAGS += -Wno-enum-conversion
ifneq (,$(findstring clang, $(CC)))
CFLAGS += -Wno-typedef-redefinition
else
ifeq ($(CC),cc)
CFLAGS += -Wno-typedef-redefinition
endif
endif
ifeq ($(USE_SYSTEM_LZMA),0)
CFLAGS_LZMA += -D_7ZIP_ST
ifneq ($(CC),clang)
ifeq (,$(findstring clang, $(CC)))
CFLAGS_LZMA += -Wno-misleading-indentation
endif
endif
@ -217,6 +221,9 @@ CFLAGS_ZLIB += -Wno-implicit-function-declaration
CFLAGS_ZLIB += -Wno-unused-parameter
CFLAGS_ZLIB += -DIOAPI_NO_64
CFLAGS_ZLIB += -DUNZ_BUFSIZE=262144
ifneq (,$(findstring clang, $(CC)))
CFLAGS_ZLIB += -Wno-deprecated-non-prototype -Wno-unknown-warning-option
endif
endif
## because UNRAR