[PATCH] D148996: [compiler-rt][test] Add `--large-address-aware` link flag for MinGW

Alvin Wong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 22 07:49:40 PDT 2023


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

The interception tests rely on the test binary being large address
aware. This has already been set for MSVC builds. Now we do the same for
MinGW.

This fixes the interception unit tests for i686-w64-windows-gnu target.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148996

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


Index: compiler-rt/lib/interception/tests/CMakeLists.txt
===================================================================
--- compiler-rt/lib/interception/tests/CMakeLists.txt
+++ compiler-rt/lib/interception/tests/CMakeLists.txt
@@ -39,6 +39,11 @@
     -Wl,-nodefaultlib:libcmt,-defaultlib:msvcrt,-defaultlib:oldnames
     )
 endif()
+if(MINGW)
+  list(APPEND INTERCEPTION_TEST_LINK_FLAGS_COMMON
+    -Wl,--large-address-aware
+    )
+endif()
 list(APPEND INTERCEPTION_TEST_LINK_FLAGS_COMMON -g)
 
 if(NOT MSVC)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148996.516074.patch
Type: text/x-patch
Size: 516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230422/13a84e39/attachment.bin>


More information about the llvm-commits mailing list