hashcat: fixup opencl support (#121961)
This fixes the following compilation error: ``` clBuildProgram(): CL_BUILD_PROGRAM_FAILURE /run/user/1000/comgr-64ff7f/input/CompileSource:2252:18: fatal error: cannot open file '/run/user/1000/comgr-64ff7f/input/inc_comp_multi_bs.cl': No such file or directory #include COMPARE_M ^ /run/user/1000/comgr-64ff7f/input/CompileSource:16:19: note: expanded from macro 'COMPARE_M' ^ 1 error generated. Error: Failed to compile opencl source (from CL or HIP source to LLVM IR). ``` Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
This commit is contained in:
parent
93123faae0
commit
ab8e2e46d9
@ -28,7 +28,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
preFixup = ''
|
||||
for f in $out/share/hashcat/OpenCL/*.cl; do
|
||||
# Rewrite files to be included for compilation at runtime for opencl offload
|
||||
sed "s|#include \"\(.*\)\"|#include \"$out/share/hashcat/OpenCL/\1\"|g" -i "$f"
|
||||
sed "s|#define COMPARE_\([SM]\) \"\(.*\.cl\)\"|#define COMPARE_\1 \"$out/share/hashcat/OpenCL/\2\"|g" -i "$f"
|
||||
done
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user