From d5215887486055d931d70aa6e86b06c3d71618a2 Mon Sep 17 00:00:00 2001 From: Kornel Date: Wed, 18 Sep 2024 18:48:21 +0100 Subject: [PATCH] Fix double cargo: prefix --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a82cfd3..db693fa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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);