diff --git a/ports/cpuid/fix-LNK2019.patch b/ports/cpuid/fix-LNK2019.patch index 8c8eb09cbbee9e..f594d012b18a4c 100644 --- a/ports/cpuid/fix-LNK2019.patch +++ b/ports/cpuid/fix-LNK2019.patch @@ -1,5 +1,5 @@ diff --git a/libcpuid/CMakeLists.txt b/libcpuid/CMakeLists.txt -index 09189ef..7056387 100644 +index 09189ef..3e30bf3 100644 --- a/libcpuid/CMakeLists.txt +++ b/libcpuid/CMakeLists.txt @@ -21,7 +21,7 @@ if(UNIX) @@ -7,7 +7,7 @@ index 09189ef..7056387 100644 endif(UNIX) -if("${MSVC_CXX_ARCHITECTURE_ID}" MATCHES "x64") -+if(MSVC) ++if(MSVC AND CMAKE_SYSTEM_PROCESSOR MATCHES ".*64$") list(APPEND cpuid_sources masm-x64.asm) endif() diff --git a/ports/cpuid/vcpkg.json b/ports/cpuid/vcpkg.json index 098376261fd513..2294a5cd6933fe 100644 --- a/ports/cpuid/vcpkg.json +++ b/ports/cpuid/vcpkg.json @@ -4,7 +4,7 @@ "description": "Provides CPU identification for the x86 (and x86_64)", "homepage": "https://github.com/anrieff/libcpuid", "license": "MIT", - "supports": "(x86 | x64) & !uwp", + "supports": "(x86 | x64 | arm | linux) & !uwp", "dependencies": [ { "name": "vcpkg-cmake",