From 76a5ab3f39ad963bcb5174e5cac1c793cd13f71c Mon Sep 17 00:00:00 2001 From: scawful Date: Tue, 14 Oct 2025 17:51:46 -0400 Subject: [PATCH] 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. --- .github/workflows/ci.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc29edee..fc24134c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 ` diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 61bea1ef..cbf4a65e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 `