2022-03-14 13:28:34 +03:00
|
|
|
//@ compile-flags: -l dylib=foo:bar
|
|
|
|
|
|
|
|
|
|
#![feature(native_link_modifiers_as_needed)]
|
|
|
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
|
|
#[link(name = "foo", kind = "dylib", modifiers = "-as-needed")]
|
|
|
|
|
extern "C" {}
|
2025-03-29 02:41:32 +03:00
|
|
|
//~^ ERROR overriding linking modifiers from command line is not supported
|