]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
llama : allow using mmap without PrefetchVirtualMemory, apply GGML_WIN_VER to llama...
authorDiego Devesa <redacted>
Thu, 5 Jun 2025 09:57:42 +0000 (02:57 -0700)
committerGeorgi Gerganov <redacted>
Tue, 10 Jun 2025 06:59:25 +0000 (09:59 +0300)
CMakeLists.txt
src/CMakeLists.txt

index 3d01184a2ee6b41aa817ef0319521383ae6c4f86..e186fdf3c03f7816a7fbfa40826e022a9a023296 100644 (file)
@@ -137,7 +137,7 @@ set(GGML_CPU_ARM_ARCH        "" CACHE STRING "ggml: CPU architecture for ARM")
 set(GGML_CPU_POWERPC_CPUTYPE "" CACHE STRING "ggml: CPU type for PowerPC")
 
 
-if (WIN32)
+if (MINGW)
     set(GGML_WIN_VER "0x602" CACHE STRING   "ggml: Windows version")
 endif()
 
index abaca7c03bd5beae14d8d63d29e2da30797291bc..d91dbc46fe9e1e09b43efc0fc0f6868ba5dbe4f3 100644 (file)
@@ -125,7 +125,6 @@ if (NOT MSVC)
 endif()
 
 if (MINGW)
-    # Target Windows 8 for PrefetchVirtualMemory
     add_compile_definitions(_WIN32_WINNT=${GGML_WIN_VER})
 endif()