We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53f4bc3 commit aeab73cCopy full SHA for aeab73c
src/librustc_llvm/build.rs
@@ -217,6 +217,9 @@ fn main() {
217
// hack around this by replacing the host triple with the target and pray
218
// that those -L directories are the same!
219
let mut cmd = Command::new(&llvm_config);
220
+ if let Some(link_arg) = llvm_link_arg {
221
+ cmd.arg(link_arg);
222
+ }
223
cmd.arg("--ldflags");
224
for lib in output(&mut cmd).split_whitespace() {
225
if lib.starts_with("-LIBPATH:") {
0 commit comments