Skip to content

Commit

Permalink
Correct upstream's bld.bat
Browse files Browse the repository at this point in the history
- the "if" from "if not exist" wasn't present, resulting in a script failure
- the files in the include\ directory weren't being moved because windows
  doesn't move recursively by default
  • Loading branch information
danpetry committed May 16, 2024
1 parent eccb38d commit 790cce3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
if not exist %PREFIX% mkdir %PREFIX%

move lib\x64\* %LIBRARY_LIB%
move include\* %LIBRARY_INC%
if not exist %LIBRARY_INC%\CL mkdir %LIBRARY_INC%\CL
move include\CL\* %LIBRARY_INC%\CL

not exist %LIBRARY_PREFIX%\etc mkdir %LIBRARY_PREFIX%\etc
not exist %LIBRARY_PREFIX%\etc\OpenCL mkdir %LIBRARY_PREFIX%\etc\OpenCL
not exist %LIBRARY_PREFIX%\etc\OpenCL\vendors mkdir %LIBRARY_PREFIX%\etc\OpenCL\vendors
type nul >> %LIBRARY_PREFIX%\etc\OpenCL\vendors\cuda.icd
if not exist %LIBRARY_PREFIX%\etc mkdir %LIBRARY_PREFIX%\etc
if not exist %LIBRARY_PREFIX%\etc\OpenCL mkdir %LIBRARY_PREFIX%\etc\OpenCL
if not exist %LIBRARY_PREFIX%\etc\OpenCL\vendors mkdir %LIBRARY_PREFIX%\etc\OpenCL\vendors
type nul >> %LIBRARY_PREFIX%\etc\OpenCL\vendors\cuda.icd

0 comments on commit 790cce3

Please sign in to comment.