Skip to content

Commit

Permalink
support x86
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankXie05 committed Nov 12, 2024
1 parent 91d7608 commit ddfbe42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ports/cpuid/fix-LNK2019.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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)
add_compile_definitions(_GNU_SOURCE)
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()

2 changes: 1 addition & 1 deletion ports/cpuid/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ddfbe42

Please sign in to comment.