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:
commit
13f48e563d
@ -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
|
||||
|
15
src/Makefile
15
src/Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user