1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-22 14:38:55 +00:00

Debug: Added -g to build_options if DEBUG >= 1 and not on Apple

This commit is contained in:
Gabriele Gristina 2025-07-18 21:12:59 +02:00
parent 58b5d15e63
commit 2e542e42cc
No known key found for this signature in database
GPG Key ID: 9F68B59298F311F0
2 changed files with 6 additions and 1 deletions

View File

@ -149,6 +149,7 @@
- Backend Checks: Describe workaround in error message when detecting more than 64 backend devices
- Backend Info: Added --machine-readable format
- Brain: Added sanity check and corresponding error message for invalid --brain-port values
- Debug: Added -g to build_options if DEBUG >= 1 and not on Apple
- Dependencies: Added sse2neon v1.8.0 (commit 658eeac)
- Dependencies: Updated LZMA SDK to 24.09
- Dependencies: Updated unrar source to 6.2.7

View File

@ -11036,7 +11036,11 @@ int backend_session_begin (hashcat_ctx_t *hashcat_ctx)
char *build_options_buf = (char *) hcmalloc (build_options_sz);
int build_options_len = snprintf (build_options_buf, build_options_sz, "-D KERNEL_STATIC ");
#if !defined (__APPLE__) && defined (DEBUG) && (DEBUG >= 1)
int build_options_len = snprintf(build_options_buf, build_options_sz, "-g -D KERNEL_STATIC ");
#else
int build_options_len = snprintf(build_options_buf, build_options_sz, "-D KERNEL_STATIC ");
#endif
if ((device_param->is_cuda == true) || (device_param->is_hip == true))
{