msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.31k stars 1.23k forks source link

Wildcard removal and gcc #22559

Open lazka opened 1 week ago

lazka commented 1 week ago

There was someone in chat reporting that the wildcard removal broke something which is also referenced in some MS docs: https://code.visualstudio.com/docs/cpp/config-mingw#_modifying-tasksjson and I don't know if there is a good workaround currently.

It seems that cl.exe for example supports them, and since gcc has an official option to enable this at gcc build time I wonder if we should enable it. It's unlikely there is untrusted things being passed to build tools, and it's a common thing to deal with multiple files there.

for the gcc option: https://github.com/gcc-mirror/gcc/blob/b085fc9965b7d1e99725892587682822068f2baa/gcc/configure.ac#L2262-L2270