I remember using an option to rustc (and cargo) that got it to print the
cc command line it uses for linking, before invoking it. I can't seem to find that option anymore. What option do I need to pass to get rustc to print its linker command line before linking?
-v helps? Otherwise use
-Clinker=false to make rustc print the arguments after
/bin/false exits with an error code.
-v doesn't show the linker arguments, unfortunately.
I just managed to find
-Z print_link_args, which works on nightly.
Was there a time when
-v printed the linker arguments? Because I remember this not being nightly only.
it might be a -Z flag
oh yeah you found it
-Z print-link-args, namely)
I remember this not being a nightly thing, though. Did rustc at some point print the linker command line with
-v and then stop doing so?