-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Stop forwarding -L "" to compiler drivers; reject or ignore instead #23303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Copying-and-pasting the example I posted in the FreeBSD issue:
Produces:
Remove the |
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Mar 15, 2015
…chton This change closes rust-lang#23303 by rejecting an empty search path.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current Rust build system passes
-L ""
torustc
whenLLVM_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 thegcc
andclang
compiler drivers forward it told
in a way that breaks the subsequentld
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).
The text was updated successfully, but these errors were encountered: