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.
This commit is contained in:
scawful
2025-10-13 13:03:32 -04:00
parent 0e23da21dd
commit dcbfc0173c
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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