more clippy::complexity fixes
This commit is contained in:
parent
fbf8b937b4
commit
de59844c98
13 changed files with 23 additions and 41 deletions
|
@ -81,7 +81,7 @@ fn pre_link_args(os: &'static str, arch: Arch, abi: &'static str) -> LinkArgs {
|
|||
_ => os.into(),
|
||||
};
|
||||
|
||||
let platform_version: StaticCow<str> = match os.as_ref() {
|
||||
let platform_version: StaticCow<str> = match os {
|
||||
"ios" => ios_lld_platform_version(),
|
||||
"tvos" => tvos_lld_platform_version(),
|
||||
"watchos" => watchos_lld_platform_version(),
|
||||
|
|
|
@ -5,12 +5,7 @@ pub fn target() -> Target {
|
|||
base.max_atomic_width = Some(64);
|
||||
base.add_pre_link_args(
|
||||
LinkerFlavor::Unix(Cc::No),
|
||||
&[
|
||||
"-b64".into(),
|
||||
"-bpT:0x100000000".into(),
|
||||
"-bpD:0x110000000".into(),
|
||||
"-bcdtors:all:0:s".into(),
|
||||
],
|
||||
&["-b64", "-bpT:0x100000000", "-bpD:0x110000000", "-bcdtors:all:0:s"],
|
||||
);
|
||||
|
||||
Target {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue