refactor(ci): update Protobuf flags for improved build configuration

- Enhanced CI and release workflows by adding flags to disable RTTI and enforce copy-in swap for Protobuf, ensuring consistent C and C++ compilation settings.
- This update aims to improve build stability and compatibility across different environments.

Benefits:
- Streamlines the Protobuf configuration, leading to a more efficient and reliable CI process.
This commit is contained in:
scawful
2025-10-14 17:51:46 -04:00
parent 8ba1d68bad
commit 76a5ab3f39
2 changed files with 4 additions and 4 deletions

View File

@@ -421,8 +421,8 @@ jobs:
-DVCPKG_MANIFEST_MODE=ON `
-DVCPKG_INSTALL_OPTIONS="--debug" `
-DOPENSSL_NO_ASM=ON `
-DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H" `
-DCMAKE_C_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H" `
-DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H /DGOOGLE_PROTOBUF_NO_RTTI /DPROTOBUF_FORCE_COPY_IN_SWAP" `
-DCMAKE_C_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H /DGOOGLE_PROTOBUF_NO_RTTI /DPROTOBUF_FORCE_COPY_IN_SWAP" `
-DProtobuf_USE_STATIC_LIBS=ON `
-DProtobuf_MSVC_STATIC_RUNTIME=ON `
-DgRPC_BUILD_GRPC_CPP_PLUGIN=OFF `

View File

@@ -430,8 +430,8 @@ jobs:
-DVCPKG_TARGET_TRIPLET=x64-windows-static `
-DVCPKG_MANIFEST_MODE=ON `
-DOPENSSL_NO_ASM=ON `
-DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H" `
-DCMAKE_C_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H" `
-DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H /DGOOGLE_PROTOBUF_NO_RTTI /DPROTOBUF_FORCE_COPY_IN_SWAP" `
-DCMAKE_C_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H /DGOOGLE_PROTOBUF_NO_RTTI /DPROTOBUF_FORCE_COPY_IN_SWAP" `
-DProtobuf_USE_STATIC_LIBS=ON `
-DProtobuf_MSVC_STATIC_RUNTIME=ON `
-DgRPC_BUILD_GRPC_CPP_PLUGIN=OFF `