From f630ed1e536379d9932de7d99eff5e178984c7f4 Mon Sep 17 00:00:00 2001 From: TheTank20 Date: Mon, 7 Jul 2025 12:53:00 -0500 Subject: [PATCH] compatibility fixes --- .github/workflows/windows.yml | 2 +- CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index e6ecbd7..9a33a1f 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -112,7 +112,7 @@ jobs: export MSYSTEM=MINGW32 echo "Compiling 32-bit OpenSSL..." cd openssl-3.1.2 - /usr/bin/perl Configure mingw --prefix=$(cygpath -u "$GITHUB_WORKSPACE")/OpenSSL-TDM-32 --openssldir=$(cygpath -u "$GITHUB_WORKSPACE")/OpenSSL-TDM-32 no-tests no-sse2 no-asm no-threads -DOPENSSL_DEV_NO_ATOMICS -mno-mmx -mno-sse -mno-sse2 -march=i386 + /usr/bin/perl Configure mingw --prefix=$(cygpath -u "$GITHUB_WORKSPACE")/OpenSSL-TDM-32 --openssldir=$(cygpath -u "$GITHUB_WORKSPACE")/OpenSSL-TDM-32 no-tests no-sse2 no-asm no-threads -DOPENSSL_DEV_NO_ATOMICS -mno-mmx -mno-sse -mno-sse2 -march=i386 -mtune=generic mingw32-make -j mingw32-make install_sw cd .. diff --git a/CMakeLists.txt b/CMakeLists.txt index ddda32c..6a1a301 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,8 @@ if (WIN32 AND NOT MSVC) # Match resource architecture with target architecture if(CMAKE_SIZEOF_VOID_P EQUAL 4) set(CMAKE_RC_FLAGS "${CMAKE_RC_FLAGS} -F pe-i386") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=i386 -mtune=generic -mno-sse -mno-sse2 -mno-mmx -mno-3dnow") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i386 -mtune=generic -mno-sse -mno-sse2 -mno-mmx -mno-3dnow") else() set(CMAKE_RC_FLAGS "${CMAKE_RC_FLAGS} -F pe-x86-64") endif()