mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-08 13:42:46 +00:00
Allow relative use of -I in build_opts
This commit is contained in:
parent
1184ae1cdd
commit
f2ce04e912
16
src/opencl.c
16
src/opencl.c
@ -4212,14 +4212,6 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
char build_opts[1024] = { 0 };
|
|
||||||
|
|
||||||
#if defined (_WIN)
|
|
||||||
snprintf (build_opts, sizeof (build_opts) - 1, "-I \"%s\"", folder_config->cpath_real);
|
|
||||||
#else
|
|
||||||
snprintf (build_opts, sizeof (build_opts) - 1, "-I %s", folder_config->cpath_real);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// include check
|
// include check
|
||||||
// this test needs to be done manually because of macOS opencl runtime
|
// this test needs to be done manually because of macOS opencl runtime
|
||||||
// if there's a problem with permission, its not reporting back and erroring out silently
|
// if there's a problem with permission, its not reporting back and erroring out silently
|
||||||
@ -4274,6 +4266,14 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
char build_opts[1024] = { 0 };
|
||||||
|
|
||||||
|
#if defined (_WIN)
|
||||||
|
snprintf (build_opts, sizeof (build_opts) - 1, "-I OpenCL -I \"%s\"", folder_config->cpath_real);
|
||||||
|
#else
|
||||||
|
snprintf (build_opts, sizeof (build_opts) - 1, "-I OpenCL -I %s", folder_config->cpath_real);
|
||||||
|
#endif
|
||||||
|
|
||||||
// we don't have sm_* on vendors not NV but it doesn't matter
|
// we don't have sm_* on vendors not NV but it doesn't matter
|
||||||
|
|
||||||
char build_opts_new[1024] = { 0 };
|
char build_opts_new[1024] = { 0 };
|
||||||
|
Loading…
Reference in New Issue
Block a user