[compiler-rt] 1194e6f - [compiler-rt][test] Add `--large-address-aware` link flag for MinGW
Alvin Wong via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 25 04:26:49 PDT 2023
Author: Alvin Wong
Date: 2023-04-25T19:21:49+08:00
New Revision: 1194e6f3fa59b99f627e290a98e3c2694e859da1
URL: https://github.com/llvm/llvm-project/commit/1194e6f3fa59b99f627e290a98e3c2694e859da1
DIFF: https://github.com/llvm/llvm-project/commit/1194e6f3fa59b99f627e290a98e3c2694e859da1.diff
LOG: [compiler-rt][test] Add `--large-address-aware` link flag for MinGW
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.
Differential Revision: https://reviews.llvm.org/D148996
Added:
Modified:
compiler-rt/lib/interception/tests/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/interception/tests/CMakeLists.txt b/compiler-rt/lib/interception/tests/CMakeLists.txt
index 37bf99edaf068..688edc3750f5f 100644
--- a/compiler-rt/lib/interception/tests/CMakeLists.txt
+++ b/compiler-rt/lib/interception/tests/CMakeLists.txt
@@ -39,6 +39,11 @@ if(MSVC)
-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)
More information about the llvm-commits
mailing list