> Why don't you use the cygwin cmake? We want to use VS Code to work with the project. It doesn't like Cygwin's CMake. It would also interfere with the clangd language server since that reads from CMake's compile_commands.json which contains the command line as it would be used within the shell.
I know the next question: Why are you not using a MinGW toolchain if all you do is cross-compile for a different target anyways? Sorry for the long paragraph. TL;DR: Management. I didn't want to, but was forced to because, this is approximately the reasoning I was given, "we can't prove that the Cygwin GCC toolchain and the MinGW toolchain will produce the same code and we can't tolerate any differences between our currently 'maintained' Cygwin toolchain and the 'experimental and untested' MinGW toolchain". Indeed, for some reason, the layout of the binary contents, and consequently the addresses referencing them, differ. I'm guessing it's because of path ordering within archives or something like that. The generated instructions, unsurprisingly, are the same, at least for the functions I've diffed. Nothing I said could sway my manager, so I spent a week working on this, first having to track down a bug that livelocked GCC (it was the "Ninja 0-byte pipe" bug, that was fixed in Cygwin 3.6.1, but our checked in version was of course 3.6.0), then having to figure out why the command line is interpreted weirdly and working around that (custom launcher + undocumented CMake feature). ________________________________ LÖWEN ENTERTAINMENT GmbH • Saarlandstraße 240 • 55411 Bingen am Rhein • Geschäftsführung: Christian Arras (Vorsitzender), Oliver Bagus, Dr. Daniel Henzgen • Vorsitz im Aufsichtsrat: Uwe Christiansen • Amtsgericht Mainz • HRB 23327 • USt.-IdNr. DE148266135 • WEEE-Reg.-Nr. DE 53361450 • Tel.: +49 6721 407 0 • E-Mail: [email protected] -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

