vcpkg/ports/luau/fix-unittest.patch

21 lines
1.2 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index cd417f8..c4a6f9a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -230,13 +230,14 @@ if(MSVC AND LUAU_BUILD_CLI)
# the default stack size that MSVC linker uses is 1 MB; we need more stack space in Debug because stack frames are larger
set_target_properties(Luau.Analyze.CLI PROPERTIES LINK_FLAGS_DEBUG /STACK:2097152)
set_target_properties(Luau.Repl.CLI PROPERTIES LINK_FLAGS_DEBUG /STACK:2097152)
- set_target_properties(Luau.UnitTest PROPERTIES LINK_FLAGS_DEBUG /STACK:2097152)
endif()
if(MSVC AND LUAU_BUILD_TESTS)
# the default stack size that MSVC linker uses is 1 MB; we need more stack space in Debug because stack frames are larger
+ set_target_properties(Luau.UnitTest PROPERTIES LINK_FLAGS_DEBUG /STACK:2097152)
set_target_properties(Luau.CLI.Test PROPERTIES LINK_FLAGS_DEBUG /STACK:2097152)
set_target_properties(Luau.Conformance PROPERTIES LINK_FLAGS_DEBUG /STACK:2097152)
+ set_target_properties(Luau.UnitTest PROPERTIES LINK_FLAGS_OPTIMIZED /STACK:2097152)
set_target_properties(Luau.CLI.Test PROPERTIES LINK_FLAGS_OPTIMIZED /STACK:2097152)
set_target_properties(Luau.Conformance PROPERTIES LINK_FLAGS_OPTIMIZED /STACK:2097152)
endif()