Mingw only provides a dynamically linked CRT (contrary to
MSVC/clang-cl), so it is expected that the static asan test
configuration doesn't work.
Skip adding these test suites in mingw configurations.
Differential D148319
[compiler-rt] [test] [asan] Skip the static asan testsuites on mingw targets mstorsjo on Apr 14 2023, 3:29 AM. Authored by
Details Mingw only provides a dynamically linked CRT (contrary to Skip adding these test suites in mingw configurations.
Diff Detail
Event TimelineComment Actions Originally I was thinking of just marking the test as unsupported in compiler-rt\test\asan\lit.cfg.py. Looking through CMakeLists.txt the change seems quite confusing. Why does the suspicious looking variable COMPILER_RT_ASAN_HAS_STATIC_RUNTIME not work, and why does it guard the dynamic asan tests instead of the static asan tests that we have to do the opposite of what it does for MINGW? Comment Actions Yes, that was my initial thought also, but then when I started looking around how these test suites were set up, I realized that this actually was kinda straightforward (in one sense). I later did try to do it that way too, but it had a couple complications. I can post the patches for that anyway, for comparisons.
Yeah that variable seems quite surprisingly named compared to the rest, but I kinda don't want to try to untangle that... Comment Actions Maybe this will help https://reviews.llvm.org/rG969902b43b0c028d49dba8ee0b443351fa0453cb Comment Actions Since @vitalybuka already approved this, I think this is fine for now, probably no need for D148443. |