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:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user