You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current Rust build system passes -L "" to rustc when LLVM_STDCPP_LOCATION_<XXX> is blank (which seems to be the default situation). -L "" does not appear to do anything useful. rustc forwards -L "" to the compiler driver correctly, but both the gcc and clang compiler drivers forward it to ld in a way that breaks the subsequent ld command-line option. (They convert -L "" to just -L.)
Perhaps the rustc driver should reject -L "" instead. It already rejects -l "".
Alternatively, it could quietly ignore -L "". Another alternative is to fix gcc and clang.
I discovered this issue while investigating a FreeBSD build failure (#23287).