[compiler-rt] [test] Pass the mingw specific option for increasing stack size
authorMartin Storsjö <martin@martin.st>
Wed, 12 Apr 2023 08:03:04 +0000 (08:03 +0000)
committerMartin Storsjö <martin@martin.st>
Thu, 13 Apr 2023 09:03:33 +0000 (12:03 +0300)
This passes the same option that was added for MSVC builds in
fb5a24b4f03a7 in the corresponding mingw form too.

This fixes the BVGraph tests in the sanitizer unit tests.

Differential Revision: https://reviews.llvm.org/D148132

compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt

index 2ff6d46..22bad61 100644 (file)
@@ -113,6 +113,8 @@ endif()
 # The default stack size for clang is 8M.
 if(MSVC)
   list(APPEND SANITIZER_TEST_LINK_FLAGS_COMMON -Wl,/STACK:0xC00000)
+elseif (MINGW)
+  list(APPEND SANITIZER_TEST_LINK_FLAGS_COMMON -Wl,--stack=0xC00000)
 endif()
 
 set(SANITIZER_TEST_LINK_LIBS)