This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] [test] Add an .exe suffix for unit test executables on MinGW
ClosedPublic

Authored by mstorsjo on Apr 23 2023, 1:25 PM.

Details

Summary

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.

Diff Detail

Event Timeline

mstorsjo created this revision.Apr 23 2023, 1:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 23 2023, 1:25 PM
Herald added subscribers: Enna1, dberris. · View Herald Transcript
mstorsjo requested review of this revision.Apr 23 2023, 1:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 23 2023, 1:25 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
alvinhochun accepted this revision.Apr 24 2023, 2:20 AM

LGTM, this makes sense.

This revision is now accepted and ready to land.Apr 24 2023, 2:20 AM