Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions demo/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ pub fn main() {
let rustc_lib: PathBuf = [&rustup_home, "toolchains", &toolchain, "lib"]
.iter()
.collect();
println!(
"cargo:rustc-link-arg-bin=rpub-demo=-Wl,-rpath,{}",
rustc_lib.display()
);

// If your binary target has a different name to your package, you'll need
// to hardcode it here.
let bin_name = env::var("CARGO_PKG_NAME").unwrap();

println!("cargo:rustc-link-arg-bin={}=-Wl,-rpath,{}", bin_name, rustc_lib.display());
}
Loading