cmake : fix "amd64" processor string (#2638)

This commit is contained in:
Georgi Gerganov 2024-12-17 18:34:32 +02:00 committed by GitHub
parent c4aed6831e
commit 94e7da1ff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -175,7 +175,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)