meson/mesonbuild/linkers
Eli Schwartz 6757e4f07c
linkers: try a bit harder to autodetect the correct linker id
mingw GCC using ld.bfd emits diagnostics that include
"-plugin-opt=-pass-through=-lmoldname" and this triggers a match for
mold when it should not.

Instead, always check the very beginning of the output for the linker
id. This is pretty consistent:

- it is always on stdout

- GCC may put additional things on stderr we don't care about

- swift is bizarre and on some OSes redirects the linker stdout to
  swiftc's stderr, but it will still be the only stderr; we didn't even
  check stderr at all until commit 712cbe0568

For gold/bfd linkers, the linker id is always the *second* word, after
the legally mandated "GNU" we already check for.
2022-05-29 11:41:55 -04:00
..
__init__.py Genericise TI compiler and add MSP430 support 2022-02-02 16:45:05 +02:00
detect.py linkers: try a bit harder to autodetect the correct linker id 2022-05-29 11:41:55 -04:00
linkers.py Fix --allow-shlib-undefined for LLVM versions > 9 2022-05-18 22:44:17 -04:00