File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,11 @@ if (MSVC)
5656 add_compile_options ("$<$<COMPILE_LANGUAGE:CXX>:/bigobj>" )
5757endif ()
5858
59+ if (MINGW)
60+ # Target Windows 8 for PrefetchVirtualMemory
61+ add_compile_definitions (_WIN32_WINNT=${GGML_WIN_VER} )
62+ endif ()
63+
5964#
6065# option list
6166#
Original file line number Diff line number Diff line change @@ -125,7 +125,6 @@ if (NOT MSVC)
125125endif ()
126126
127127if (MINGW)
128- # Target Windows 8 for PrefetchVirtualMemory
129128 add_compile_definitions (_WIN32_WINNT=${GGML_WIN_VER} )
130129endif ()
131130
Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ struct llama_mmap::impl {
401401 }
402402 }
403403#else
404- throw std::runtime_error ( " PrefetchVirtualMemory unavailable " );
404+ LLAMA_LOG_DEBUG ( " skipping PrefetchVirtualMemory because _WIN32_WINNT < 0x602 \n " );
405405#endif
406406 }
407407 }
You can’t perform that action at this time.
0 commit comments