[compiler-rt] [test] Add an .exe suffix for unit test executables on MinGW
authorMartin Storsjö <martin@martin.st>
Sun, 23 Apr 2023 19:51:59 +0000 (22:51 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 25 Apr 2023 18:09:05 +0000 (21:09 +0300)
commit86339ef088e9aac6cf52cf9022d7a5bd144d4c42
treeb549246cfe888e99c89d64b20a20f0a3ff689b0b
parent4021215fdf999f8fca294f04b4ac92e239be4304
[compiler-rt] [test] Add an .exe suffix for unit test executables on MinGW

Previously, an .exe suffix was only added for MSVC configurations.

In practice, an .exe suffix is added implicitly by MinGW toolchains
if the output is a suffixless file name. However this can cause lots
of subtle build system confusion, when it's not generating the file it
expected.

Differential Revision: https://reviews.llvm.org/D149029
compiler-rt/cmake/Modules/AddCompilerRT.cmake