Skip to content

Commit

Permalink
Merge pull request #168 from kornelski/cargo-cargo
Browse files Browse the repository at this point in the history
Fix double cargo: prefix
  • Loading branch information
sdroege authored Sep 21, 2024
2 parents dc3b7b6 + d521588 commit 525be2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ impl Library {

if val.starts_with(':') {
// Pass this flag to linker directly.
let meta = format!("cargo:rustc-link-arg={}{}", flag, val);
let meta = format!("rustc-link-arg={}{}", flag, val);
config.print_metadata(&meta);
} else if statik && is_static_available(val, &system_roots, &dirs) {
let meta = format!("rustc-link-lib=static={}", val);
Expand Down

0 comments on commit 525be2f

Please sign in to comment.