diff --git a/compiler-rt/lib/interception/tests/CMakeLists.txt b/compiler-rt/lib/interception/tests/CMakeLists.txt --- a/compiler-rt/lib/interception/tests/CMakeLists.txt +++ b/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)