From 44aa859e6dfad96a5eb93783e7166e0d659ce053 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Sun, 12 Jan 2025 15:04:14 +0000 Subject: [PATCH] build: add cmake var and cpp macro for XP builds Add the WINXP CMake variable and WINXP CPP macro for MinGW 32 bit Windows XP builds. Signed-off-by: Rafael Kitover --- cmake/Toolchain-gcc-clang.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/Toolchain-gcc-clang.cmake b/cmake/Toolchain-gcc-clang.cmake index 8d6d4350..d681fab2 100644 --- a/cmake/Toolchain-gcc-clang.cmake +++ b/cmake/Toolchain-gcc-clang.cmake @@ -7,8 +7,10 @@ if(UPSTREAM_RELEASE) # Require and optimize for Core2 level support, tune for generic. add_compile_options(-march=core2 -mtune=generic) elseif(X86_32) - # Optimize for pentium-mmx and tune for generic for older builds. + # Optimize for pentiumi3 and tune for generic for Windows XP builds. + set(WINXP TRUE) add_compile_options(-march=pentium3 -mtune=generic) + add_compile_definitions(-DWINXP) endif() endif()