backend-infra-engineer: Release v0.3.9-hotfix7 snapshot
This commit is contained in:
@@ -144,23 +144,13 @@ if(YAZE_BUILD_TESTS)
|
||||
target_link_libraries(yaze_editor PUBLIC ImGuiTestEngine)
|
||||
message(STATUS "✓ yaze_editor linked to ImGuiTestEngine")
|
||||
endif()
|
||||
|
||||
if(TARGET yaze_test_support)
|
||||
# Use whole-archive on Unix to ensure test symbols are included
|
||||
# This is needed because editor_manager.cc calls test functions conditionally
|
||||
if(APPLE)
|
||||
target_link_options(yaze_editor PUBLIC
|
||||
"LINKER:-force_load,$<TARGET_FILE:yaze_test_support>")
|
||||
target_link_libraries(yaze_editor PUBLIC yaze_test_support)
|
||||
elseif(UNIX)
|
||||
target_link_libraries(yaze_editor PUBLIC
|
||||
-Wl,--whole-archive yaze_test_support -Wl,--no-whole-archive)
|
||||
else()
|
||||
# Windows: Normal linking (no whole-archive needed, symbols resolve correctly)
|
||||
target_link_libraries(yaze_editor PUBLIC yaze_test_support)
|
||||
endif()
|
||||
message(STATUS "✓ yaze_editor linked to yaze_test_support")
|
||||
endif()
|
||||
|
||||
# NOTE: yaze_editor should NOT force-load yaze_test_support to avoid circular dependency.
|
||||
# The chain yaze_editor -> force_load(yaze_test_support) -> yaze_editor causes SIGSEGV
|
||||
# during static initialization.
|
||||
#
|
||||
# Test executables should link yaze_test_support directly, which provides all needed
|
||||
# symbols through its own dependencies (including yaze_editor via regular linking).
|
||||
endif()
|
||||
|
||||
# Conditionally link gRPC if enabled
|
||||
|
||||
Reference in New Issue
Block a user