[PATCH] D148132: [compiler-rt] [test] Pass the mingw specific option for increasing stack size

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 12 07:55:07 PDT 2023


mstorsjo created this revision.
mstorsjo added reviewers: phosek, alvinhochun, vitalybuka.
Herald added subscribers: Enna1, dberris.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148132

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


Index: compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
===================================================================
--- compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
+++ compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
@@ -113,6 +113,8 @@
 # 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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148132.512832.patch
Type: text/x-patch
Size: 515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230412/da6b9c69/attachment.bin>


More information about the llvm-commits mailing list