-print-prog-name=<name>
Print the full program path of name.
The current linker check function greps this path for occurrences of lld, ld, or gold. As demonstrated below, this does not work and probably has never worked (except when changing the linker system-wide).
As described in the clang manpage:
The current linker check function greps this path for occurrences of lld, ld, or gold. As demonstrated below, this does not work and probably has never worked (except when changing the linker system-wide).
There are multiple ways to check for the linker:
-Wl,--verbose
as compiler argument and grep the output-fuse-ld