We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8065740 + ef726e0 commit 576f550Copy full SHA for 576f550
src/lib.rs
@@ -726,7 +726,11 @@ impl Library {
726
continue;
727
}
728
729
- if statik && is_static_available(val, &system_roots, &dirs) {
+ if val.starts_with(':') {
730
+ // Pass this flag to linker directly.
731
+ let meta = format!("cargo:rustc-link-arg={}{}", flag, val);
732
+ config.print_metadata(&meta);
733
+ } else if statik && is_static_available(val, &system_roots, &dirs) {
734
let meta = format!("rustc-link-lib=static={}", val);
735
config.print_metadata(&meta);
736
} else {
0 commit comments