Skip to content

Commit 110992c

Browse files
committed
fmt files
1 parent 00079dc commit 110992c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

compiler/rustc_target/src/spec/targets/aarch64_unknown_nto_qnx710_iosock.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ use crate::spec::{Cc, LinkerFlavor, Lld, Target, TargetOptions};
33
pub(crate) fn target() -> Target {
44
let mut target = super::aarch64_unknown_nto_qnx710::target();
55
target.options.env = "nto71_iosock".into();
6-
target.options.pre_link_args = TargetOptions::link_args(
7-
LinkerFlavor::Gnu(Cc::Yes, Lld::No),
8-
&["-Vgcc_ntoaarch64le_cxx", get_iosock_param()],
9-
);
6+
target.options.pre_link_args =
7+
TargetOptions::link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &[
8+
"-Vgcc_ntoaarch64le_cxx",
9+
get_iosock_param(),
10+
]);
1011
target
1112
}
1213

@@ -18,7 +19,8 @@ pub(crate) fn target() -> Target {
1819
// More information:
1920
// https://www.qnx.com/developers/docs/7.1/index.html#com.qnx.doc.neutrino.io_sock/topic/migrate_app.html
2021
fn get_iosock_param() -> &'static str {
21-
let target_dir = std::env::var("QNX_TARGET").unwrap_or_else(|_| "PLEASE_SET_ENV_VAR_QNX_TARGET".into());
22+
let target_dir =
23+
std::env::var("QNX_TARGET").unwrap_or_else(|_| "PLEASE_SET_ENV_VAR_QNX_TARGET".into());
2224
let linker_param = format!("-L{target_dir}/aarch64le/io-sock/lib");
2325

2426
linker_param.leak()

src/bootstrap/src/core/sanity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub struct Finder {
3434
// Targets can be removed from this list once they are present in the stage0 compiler (usually by updating the beta compiler of the bootstrap).
3535
const STAGE0_MISSING_TARGETS: &[&str] = &[
3636
// just a dummy comment so the list doesn't get onelined
37-
"aarch64-unknown-nto-qnx710_iosock"
37+
"aarch64-unknown-nto-qnx710_iosock",
3838
];
3939

4040
/// Minimum version threshold for libstdc++ required when using prebuilt LLVM

0 commit comments

Comments
 (0)