winegcc: Prefer -Wl,--pdb=<file> over -Wl,-pdb,<file>.
commit6705a710450b015de9f378a4a4480b7623c837ad
authorMartin Storsjö <martin@martin.st>
Thu, 20 Oct 2022 20:52:13 +0000 (20 23:52 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 1 Nov 2022 19:46:22 +0000 (1 20:46 +0100)
treec81d8339a4d7a2d79a9ff010bd5608ed91dbde17
parent2d90027bef15212aea3eaf722edfbc0e736aa1ea
winegcc: Prefer -Wl,--pdb=<file> over -Wl,-pdb,<file>.

The previously used syntax, -Wl,-pdb,<file>, was the originally
supported one in lld (since 2018). Later (in 2019) the second
syntax was added, allowing both -Wl,-pdb=<file> and -Wl,-pdb,<file>.
(This other parameter syntax allows easier distinguishing an empty
argument, for letting the linker implicitly pick the file name.)

Move over to using the more modern syntax - reducing the usage of
the old form of the option. This potentially allows deprecating
the original syntax and maybe allows using --pdb as a boolean
flag for implying an automatically named PDB file (which currently
requires using the awkward syntax "--pdb=").

Also prefer the long two dashes form, i.e. --pdb instead of -pdb;
the single dash form is only allowed by getopt when there
are no conflicts with single-letter options, while the form with
two dashes is unambiguous.
tools/winegcc/winegcc.c