From: <sv...@op...> - 2024-10-20 12:55:33
|
Author: manx Date: Sun Oct 20 14:55:21 2024 New Revision: 21884 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21884 Log: [Fix] BuildSettings: Do not use x86 intrinsics on ARM64EC. Modified: trunk/OpenMPT/common/BuildSettings.h Modified: trunk/OpenMPT/common/BuildSettings.h ============================================================================== --- trunk/OpenMPT/common/BuildSettings.h Sun Oct 20 14:52:58 2024 (r21883) +++ trunk/OpenMPT/common/BuildSettings.h Sun Oct 20 14:55:21 2024 (r21884) @@ -16,6 +16,7 @@ +#include "mpt/base/detect_arch.hpp" #include "mpt/base/detect_compiler.hpp" #include "mpt/base/detect_os.hpp" #include "mpt/base/detect_quirks.hpp" @@ -229,14 +230,14 @@ #endif #if defined(MPT_ENABLE_ARCH_INTRINSICS) -#if MPT_COMPILER_MSVC && defined(_M_IX86) +#if MPT_COMPILER_MSVC && MPT_ARCH_X86 #define MPT_ENABLE_ARCH_X86 #define MPT_ENABLE_ARCH_INTRINSICS_SSE #define MPT_ENABLE_ARCH_INTRINSICS_SSE2 -#elif MPT_COMPILER_MSVC && defined(_M_X64) +#elif MPT_COMPILER_MSVC && MPT_ARCH_AMD64 #define MPT_ENABLE_ARCH_AMD64 |