mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-13 19:28:56 +00:00
Replaced "HAVE_HWMON" with "WITH_HWMON" as a more cmakish variable name for compile-time feature
This commit is contained in:
parent
c00d63758c
commit
f987546a74
@ -123,7 +123,7 @@ CFLAGS_NATIVE += -s
|
||||
endif
|
||||
CFLAGS_NATIVE += $(CFLAGS)
|
||||
LFLAGS_NATIVE := -lpthread -ldl
|
||||
CFLAGS_NATIVE += -DHAVE_HWMON
|
||||
CFLAGS_NATIVE += -DWITH_HWMON
|
||||
LFLAGS_NATIVE += $(LDFLAGS)
|
||||
endif # linux
|
||||
|
||||
@ -143,7 +143,7 @@ ifndef DEBUG
|
||||
CFLAGS_CROSS_LINUX += -s
|
||||
endif
|
||||
CFLAGS_CROSS_LINUX += $(CFLAGS)
|
||||
CFLAGS_CROSS_LINUX += -DHAVE_HWMON
|
||||
CFLAGS_CROSS_LINUX += -DWITH_HWMON
|
||||
|
||||
#CFLAGS_CROSS_WIN := -D_WIN -DWIN -D__MSVCRT__ -D__USE_MINGW_ANSI_STDIO=1
|
||||
CFLAGS_CROSS_WIN :=
|
||||
@ -151,7 +151,7 @@ ifndef DEBUG
|
||||
CFLAGS_CROSS_WIN += -s
|
||||
endif
|
||||
CFLAGS_CROSS_WIN += $(filter-out -fsanitize=address,$(CFLAGS))
|
||||
CFLAGS_CROSS_WIN += -DHAVE_HWMON
|
||||
CFLAGS_CROSS_WIN += -DWITH_HWMON
|
||||
|
||||
CFLAGS_CROSS_32 := -m32
|
||||
CFLAGS_CROSS_64 := -m64
|
||||
|
@ -320,12 +320,12 @@ int user_options_parse (user_options_t *user_options, int argc, char **argv)
|
||||
return -1;
|
||||
}
|
||||
|
||||
#if !defined (HAVE_HWMON)
|
||||
#if !defined (WITH_HWMON)
|
||||
user_options->powertune_enable = false;
|
||||
user_options->gpu_temp_disable = true;
|
||||
user_options->gpu_temp_abort = 0;
|
||||
user_options->gpu_temp_retain = 0;
|
||||
#endif // HAVE_HWMON
|
||||
#endif // WITH_HWMON
|
||||
|
||||
// some options can influence or overwrite other options
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user