From 4bf13d630dd5c3a23aefd59c2c8d94c0db3e1839 Mon Sep 17 00:00:00 2001 From: Alex Reinking Date: Mon, 8 Jul 2024 15:30:52 -0400 Subject: [PATCH] fix x86 MSVC detection --- src/Target.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Target.cpp b/src/Target.cpp index 5eccbd4a7f48..c0cd3e9bab3a 100644 --- a/src/Target.cpp +++ b/src/Target.cpp @@ -57,7 +57,7 @@ using std::vector; namespace { -#if defined(_M_AMD64) +#if defined(_M_IX86) || defined(_M_AMD64) void cpuid(int info[4], int infoType, int extra) { __cpuidex(info, infoType, extra); @@ -77,7 +77,7 @@ void cpuid(int info[4], int infoType, int extra) { #endif -#if defined(__x86_64__) || defined(__i386__) || defined(_M_AMD64) +#if defined(__x86_64__) || defined(__i386__) || defined(_M_IX86) || defined(_M_AMD64) enum class VendorSignatures { Unknown,