cmake : fix "amd64" processor string (whisper/2638)

This commit is contained in:
Georgi Gerganov 2024-12-17 18:34:32 +02:00
parent 8dd19a4812
commit 78f766768d
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -179,7 +179,7 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
endif()
elseif (CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64" OR CMAKE_GENERATOR_PLATFORM_LWR MATCHES "^(x86_64|i686|amd64|x64|win32)$" OR
(NOT CMAKE_OSX_ARCHITECTURES AND NOT CMAKE_GENERATOR_PLATFORM_LWR AND
CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|i686|AMD64)$"))
CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|i686|AMD64|amd64)$"))
if (MSVC)
# instruction set detection for MSVC only
if (GGML_NATIVE)