[PATCH] D88005: [clang] [MinGW] Add an implicit .exe suffix even when crosscompiling

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 26 11:49:28 PDT 2020


mstorsjo added a comment.

In D88005#2296254 <https://reviews.llvm.org/D88005#2296254>, @dmajor wrote:

> This change broke the configure step of Firefox mingw builds.
>
> The build bot won't give me the full details, so I'll need to set up a local repro next week if needed, but my hunch is that we have some test like `$CC $CFLAGS conftest.c -o conftest` and then check for the existence of `conftest`.
>
> Is that type of pattern an acceptable casualty of this change?

I presume that's to be expected - it's certainly a pain, but anybody crosscompiling with GCC and updating to 8 or newer is going to be running into the same there as well.

FWIW, the change in GCC that changes this was this one: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=5bc86b599054f494ec0a45e49b82749320eaa9c4;hp=77efd154f33154e819186de79687ea55552139f4

This at least clarifies the situation, because the inconsistency (which show up e.g. in handwritten makefiles) between compiling natively vs crosscompiling has been pretty weird.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88005/new/

https://reviews.llvm.org/D88005



More information about the cfe-commits mailing list