more clippy::complexity fixes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user