1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-24 00:51:05 +00:00

Add more include-dir variants to also make Intel OpenCL SDK on windows happy

This commit is contained in:
jsteube 2016-05-25 23:47:02 +02:00
parent d64083e946
commit 250dbde2a2

View File

@ -13647,6 +13647,7 @@ int main (int argc, char **argv)
} }
} }
/* turns out pocl still creates segfaults (because of llvm)
if (device_type & CL_DEVICE_TYPE_CPU) if (device_type & CL_DEVICE_TYPE_CPU)
{ {
if (vendor_id == VENDOR_ID_AMD) if (vendor_id == VENDOR_ID_AMD)
@ -13664,6 +13665,7 @@ int main (int argc, char **argv)
} }
} }
} }
*/
/** /**
* kernel accel and loops tuning db adjustment * kernel accel and loops tuning db adjustment
@ -14557,9 +14559,9 @@ int main (int argc, char **argv)
// 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
#if _WIN #if _WIN
snprintf (build_opts, sizeof (build_opts) - 1, "-I \"%s\\OpenCL\\\" -I '%s\\OpenCL\\' -I %s\\OpenCL\\", shared_dir, shared_dir, shared_dir); snprintf (build_opts, sizeof (build_opts) - 1, "-I \"%s\\OpenCL\\\" -I '%s\\OpenCL\\' -I %s\\OpenCL\\ -I\"%s\\OpenCL\\\" -I'%s\\OpenCL\\' -I%s\\OpenCL\\", shared_dir, shared_dir, shared_dir, shared_dir, shared_dir, shared_dir);
#else #else
snprintf (build_opts, sizeof (build_opts) - 1, "-I \"%s/OpenCL/\" -I '%s/OpenCL/' -I %s/OpenCL/", shared_dir, shared_dir, shared_dir); snprintf (build_opts, sizeof (build_opts) - 1, "-I \"%s/OpenCL/\" -I '%s/OpenCL/' -I %s/OpenCL/ -I\"%s/OpenCL/\" -I'%s/OpenCL/' -I%s/OpenCL/", shared_dir, shared_dir, shared_dir, shared_dir, shared_dir, shared_dir);
#endif #endif
char build_opts_new[1024] = { 0 }; char build_opts_new[1024] = { 0 };