mirror of
https://github.com/hashcat/hashcat.git
synced 2025-07-27 00:48:14 +00:00
Fix cross-compiler target in makefiles
Do not show timeout patch warnings in virtualized mode
This commit is contained in:
parent
a2a9941475
commit
22c25b3ea1
@ -39,6 +39,12 @@ ifeq ($(DEBUG),1)
|
|||||||
$(info "## Detected Operating System : $(UNAME)")
|
$(info "## Detected Operating System : $(UNAME)")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
BUILD_MODE := native
|
||||||
|
|
||||||
|
ifneq ($(filter binaries linux host_linux modules_linux bridges_linux win host_win modules_win bridges_win,$(MAKECMDGOALS)),)
|
||||||
|
BUILD_MODE := cross
|
||||||
|
endif
|
||||||
|
|
||||||
##
|
##
|
||||||
## Makefile flags
|
## Makefile flags
|
||||||
##
|
##
|
||||||
|
@ -5494,7 +5494,7 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
|||||||
|
|
||||||
if (device_param->kernel_exec_timeout != 0)
|
if (device_param->kernel_exec_timeout != 0)
|
||||||
{
|
{
|
||||||
if (user_options->quiet == false)
|
if ((user_options->quiet == false) && (is_virtualized == false))
|
||||||
{
|
{
|
||||||
event_log_advice (hashcat_ctx, "* Device #%u: WARNING! Kernel exec timeout is not disabled.", device_id + 1);
|
event_log_advice (hashcat_ctx, "* Device #%u: WARNING! Kernel exec timeout is not disabled.", device_id + 1);
|
||||||
event_log_advice (hashcat_ctx, " This may cause \"CL_OUT_OF_RESOURCES\" or related errors.");
|
event_log_advice (hashcat_ctx, " This may cause \"CL_OUT_OF_RESOURCES\" or related errors.");
|
||||||
@ -5930,7 +5930,7 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
|||||||
|
|
||||||
if (device_param->kernel_exec_timeout != 0)
|
if (device_param->kernel_exec_timeout != 0)
|
||||||
{
|
{
|
||||||
if (user_options->quiet == false)
|
if ((user_options->quiet == false) && (is_virtualized == false))
|
||||||
{
|
{
|
||||||
event_log_advice (hashcat_ctx, "* Device #%u: WARNING! Kernel exec timeout is not disabled.", device_id + 1);
|
event_log_advice (hashcat_ctx, "* Device #%u: WARNING! Kernel exec timeout is not disabled.", device_id + 1);
|
||||||
event_log_advice (hashcat_ctx, " This may cause \"CL_OUT_OF_RESOURCES\" or related errors.");
|
event_log_advice (hashcat_ctx, " This may cause \"CL_OUT_OF_RESOURCES\" or related errors.");
|
||||||
@ -7721,7 +7721,7 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
|
|||||||
|
|
||||||
if (device_param->kernel_exec_timeout != 0)
|
if (device_param->kernel_exec_timeout != 0)
|
||||||
{
|
{
|
||||||
if (user_options->quiet == false)
|
if ((user_options->quiet == false) && (is_virtualized == false))
|
||||||
{
|
{
|
||||||
event_log_warning (hashcat_ctx, "* Device #%u: WARNING! Kernel exec timeout is not disabled.", device_id + 1);
|
event_log_warning (hashcat_ctx, "* Device #%u: WARNING! Kernel exec timeout is not disabled.", device_id + 1);
|
||||||
event_log_warning (hashcat_ctx, " This may cause \"CL_OUT_OF_RESOURCES\" or related errors.");
|
event_log_warning (hashcat_ctx, " This may cause \"CL_OUT_OF_RESOURCES\" or related errors.");
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
ARGON2_REFERENCE := deps/phc-winner-argon2-20190702
|
ARGON2_REFERENCE := deps/phc-winner-argon2-20190702
|
||||||
ARGON2_REFERENCE_CFLAGS := -I$(ARGON2_REFERENCE)/_hashcat/
|
ARGON2_REFERENCE_CFLAGS := -I$(ARGON2_REFERENCE)/_hashcat/
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),binaries)
|
ifeq ($(BUILD_MODE),cross)
|
||||||
ARGON2_REFERENCE_CFLAGS += -mavx2
|
ARGON2_REFERENCE_CFLAGS += -mavx2
|
||||||
else
|
else
|
||||||
ifeq ($(UNAME),Darwin)
|
ifeq ($(UNAME),Darwin)
|
||||||
@ -14,7 +14,7 @@ ARGON2_REFERENCE_CFLAGS += -march=native
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),binaries)
|
ifeq ($(BUILD_MODE),cross)
|
||||||
bridges/bridge_argon2id_reference.so: src/bridges/bridge_argon2id_reference.c obj/combined.LINUX.a
|
bridges/bridge_argon2id_reference.so: src/bridges/bridge_argon2id_reference.c obj/combined.LINUX.a
|
||||||
$(CC_LINUX) $(CCFLAGS) $(CFLAGS_CROSS_LINUX) $^ -o $@ $(LFLAGS_CROSS_LINUX) -shared -fPIC -D BRIDGE_INTERFACE_VERSION_CURRENT=$(BRIDGE_INTERFACE_VERSION) $(ARGON2_REFERENCE_CFLAGS)
|
$(CC_LINUX) $(CCFLAGS) $(CFLAGS_CROSS_LINUX) $^ -o $@ $(LFLAGS_CROSS_LINUX) -shared -fPIC -D BRIDGE_INTERFACE_VERSION_CURRENT=$(BRIDGE_INTERFACE_VERSION) $(ARGON2_REFERENCE_CFLAGS)
|
||||||
bridges/bridge_argon2id_reference.dll: src/bridges/bridge_argon2id_reference.c obj/combined.WIN.a
|
bridges/bridge_argon2id_reference.dll: src/bridges/bridge_argon2id_reference.c obj/combined.WIN.a
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
SCRYPT_JANE := deps/scrypt-jane-master
|
SCRYPT_JANE := deps/scrypt-jane-master
|
||||||
SCRYPT_JANE_CFLAGS := -I$(SCRYPT_JANE)/ -DSCRYPT_SHA256 -DSCRYPT_SALSA -DSCRYPT_CHOOSE_COMPILETIME -Wno-unused-function -Wno-unused-but-set-variable
|
SCRYPT_JANE_CFLAGS := -I$(SCRYPT_JANE)/ -DSCRYPT_SHA256 -DSCRYPT_SALSA -DSCRYPT_CHOOSE_COMPILETIME -Wno-unused-function -Wno-unused-but-set-variable
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),binaries)
|
ifeq ($(BUILD_MODE),cross)
|
||||||
SCRYPT_JANE_CFLAGS += -mavx2
|
SCRYPT_JANE_CFLAGS += -mavx2
|
||||||
else
|
else
|
||||||
ifeq ($(UNAME),Darwin)
|
ifeq ($(UNAME),Darwin)
|
||||||
@ -14,7 +14,7 @@ SCRYPT_JANE_CFLAGS += -march=native
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),binaries)
|
ifeq ($(BUILD_MODE),cross)
|
||||||
bridges/bridge_scrypt_jane.so: src/bridges/bridge_scrypt_jane.c obj/combined.LINUX.a
|
bridges/bridge_scrypt_jane.so: src/bridges/bridge_scrypt_jane.c obj/combined.LINUX.a
|
||||||
$(CC_LINUX) $(CCFLAGS) $(CFLAGS_CROSS_LINUX) $^ -o $@ $(LFLAGS_CROSS_LINUX) -shared -fPIC -D BRIDGE_INTERFACE_VERSION_CURRENT=$(BRIDGE_INTERFACE_VERSION) $(SCRYPT_JANE_CFLAGS)
|
$(CC_LINUX) $(CCFLAGS) $(CFLAGS_CROSS_LINUX) $^ -o $@ $(LFLAGS_CROSS_LINUX) -shared -fPIC -D BRIDGE_INTERFACE_VERSION_CURRENT=$(BRIDGE_INTERFACE_VERSION) $(SCRYPT_JANE_CFLAGS)
|
||||||
bridges/bridge_scrypt_jane.dll: src/bridges/bridge_scrypt_jane.c obj/combined.WIN.a
|
bridges/bridge_scrypt_jane.dll: src/bridges/bridge_scrypt_jane.c obj/combined.WIN.a
|
||||||
|
Loading…
Reference in New Issue
Block a user