Subject: bug#45303: #45303 [feature/native-comp] building error on Windows

From: Eli Zaretskii <[email-masked]>
Date: Fri, 18 Dec 2020 23:22:57 +0200

> Date: Fri, 18 Dec 2020 16:02:20 +0000
> Cc: [email-masked]
> From: Andrea Corallo via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> >   # patch to look for libgccjit-0.dll instead of libgcc.dll?  lisp/term/w32-win.el & src/emacs.c
> >   sed -i -e 's/libgccjit.dll/libgccjit-0.dll/' lisp/term/w32-win.el
> >   sed -i -e 's/libgccjit.dll/libgccjit-0.dll/' src/emacs.c
> 
> I've really no windows knowledge to judge that, perhaps Eli will
> comment.  If these are correct fixes you should submit a patch for
> those.

They are correct fixes, since DLLs on Windows usually have the API
number in their names.  In this case, I guess the API number is zero,
so libgccjit-0.dll is correct (and libgccjit.dll probably doesn't
exist in Windows installations of GCC/libgccjit).