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)