From 1a8b185087e3a2ffd44398d780fa9e46a849b7f6 Mon Sep 17 00:00:00 2001 From: sgt57 <198590103+sgt57@users.noreply.github.com> Date: Sat, 7 Nov 2026 13:19:48 +0800 Subject: [PATCH] fix(tests): statically link MinGW sandbox helper runtime --- tests/windows-sandbox/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/windows-sandbox/CMakeLists.txt b/tests/windows-sandbox/CMakeLists.txt index 522ab307..1786699e 100644 --- a/tests/windows-sandbox/CMakeLists.txt +++ b/tests/windows-sandbox/CMakeLists.txt @@ -5,7 +5,7 @@ if(MSVC) set_property(TARGET sandbox-helper PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") endif() if(MINGW) - target_link_options(sandbox-helper PRIVATE -municode) + target_link_options(sandbox-helper PRIVATE -municode -static) endif() target_link_libraries(sandbox-helper PRIVATE advapi32 ws2_32)