Stabilize the bundle
native library modifier
This commit is contained in:
parent
d7b8d77be5
commit
a8ee1f3a4f
35 changed files with 91 additions and 196 deletions
|
@ -1920,21 +1920,6 @@ fn parse_native_lib_kind(
|
|||
|
||||
let kind = match kind {
|
||||
"static" => NativeLibKind::Static { bundle: None, whole_archive: None },
|
||||
"static-nobundle" => {
|
||||
early_warn(
|
||||
error_format,
|
||||
"library kind `static-nobundle` has been superseded by specifying \
|
||||
modifier `-bundle` with library kind `static`. Try `static:-bundle`",
|
||||
);
|
||||
if !nightly_options::match_is_nightly_build(matches) {
|
||||
early_error(
|
||||
error_format,
|
||||
"library kind `static-nobundle` is unstable \
|
||||
and only accepted on the nightly compiler",
|
||||
);
|
||||
}
|
||||
NativeLibKind::Static { bundle: Some(false), whole_archive: None }
|
||||
}
|
||||
"dylib" => NativeLibKind::Dylib { as_needed: None },
|
||||
"framework" => NativeLibKind::Framework { as_needed: None },
|
||||
_ => early_error(
|
||||
|
@ -1987,10 +1972,7 @@ fn parse_native_lib_modifiers(
|
|||
}
|
||||
};
|
||||
match (modifier, &mut kind) {
|
||||
("bundle", NativeLibKind::Static { bundle, .. }) => {
|
||||
report_unstable_modifier();
|
||||
assign_modifier(bundle)
|
||||
}
|
||||
("bundle", NativeLibKind::Static { bundle, .. }) => assign_modifier(bundle),
|
||||
("bundle", _) => early_error(
|
||||
error_format,
|
||||
"linking modifier `bundle` is only compatible with `static` linking kind",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue