chore: update gRPC version to v1.75.1 and remove /WHOLEARCHIVE linking

- Upgraded gRPC version from v1.68.0 to v1.75.1 for improved compatibility across all platforms.
- Removed /WHOLEARCHIVE linking for protobuf to prevent duplicate version resource errors in the dependency chain.
- Updated status messages to reflect the latest gRPC version and build optimizations.

Benefits:
- Enhances build stability and compatibility with modern toolchains.
- Simplifies linking process by avoiding unnecessary options that cause conflicts.
This commit is contained in:
scawful
2025-10-17 22:57:27 -04:00
parent 354a96d688
commit 9f56728f80
8 changed files with 15 additions and 47 deletions

View File

@@ -47,12 +47,8 @@ if(YAZE_BUILD_TESTS)
message(STATUS "Configuring Windows stack size for ${suite_name} to 16MB")
if(MSVC)
target_link_options(${suite_name} PRIVATE /STACK:16777216)
# Force whole-archive linking for protobuf to ensure all symbols are included
if(YAZE_WITH_GRPC AND MSVC AND YAZE_PROTOBUF_WHOLEARCHIVE_TARGETS)
foreach(_yaze_proto_target IN LISTS YAZE_PROTOBUF_WHOLEARCHIVE_TARGETS)
target_link_options(${suite_name} PRIVATE /WHOLEARCHIVE:$<TARGET_FILE:${_yaze_proto_target}>)
endforeach()
endif()
# NOTE: Removed /WHOLEARCHIVE for protobuf - causes LNK1241 duplicate version.res
# Protobuf symbols are already linked transitively from yaze_test_support
else()
target_link_options(${suite_name} PRIVATE -Wl,--stack,16777216)
endif()