From dcbfc0173cd76e69dd738146d4d05efcbbe63229 Mon Sep 17 00:00:00 2001 From: scawful Date: Mon, 13 Oct 2025 13:03:32 -0400 Subject: [PATCH] fix(ci): add preprocessor definition for Windows intrinsics in CI and release workflows - Updated CMake configuration in both CI and release workflows to include the preprocessor definition `/D__PRFCHWINTRIN_H` alongside the existing definition for `google_protobuf_undef_DWORD`. - This change ensures compatibility with Windows-specific intrinsics during the build process. Benefits: - Improves build reliability on Windows platforms by addressing potential issues with intrinsic functions. --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8a6c0fa..deb87925 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -239,7 +239,7 @@ jobs: -DVCPKG_MANIFEST_MODE=ON ` -DVCPKG_INSTALL_OPTIONS="--debug" ` -DOPENSSL_NO_ASM=ON ` - -DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1" ` + -DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H" ` -DYAZE_BUILD_TESTS=ON ` -DYAZE_BUILD_EMU=OFF ` -DYAZE_ENABLE_ROM_TESTS=OFF 2>&1 | Tee-Object -FilePath cmake_config.log diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cf139654..4ac65f29 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -245,7 +245,7 @@ jobs: -DVCPKG_TARGET_TRIPLET=x64-windows-static ` -DVCPKG_MANIFEST_MODE=ON ` -DOPENSSL_NO_ASM=ON ` - -DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1" ` + -DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H" ` -DYAZE_BUILD_TESTS=ON ` -DYAZE_ENABLE_ROM_TESTS=OFF 2>&1 | Tee-Object -FilePath cmake_config.log # Note: Tests enabled for pre-1.0 releases to catch issues before publishing