Skip to content

Commit 8301ac2

Browse files
committed
apply nits
Signed-off-by: onur-ozkan <[email protected]>
1 parent 91646ce commit 8301ac2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,7 +2113,7 @@ impl Build {
21132113
// This assumes qcc/q++ as compiler, which is currently the only supported compiler for QNX.
21142114
// See for details: https://github.com/rust-lang/cc-rs/pull/1319
21152115
let arg = match target.arch {
2116-
"i586" | "x86" => "-Vgcc_ntox86_cxx",
2116+
"x86" | "i586" => "-Vgcc_ntox86_cxx",
21172117
"aarch64" => "-Vgcc_ntoaarch64le_cxx",
21182118
"x86_64" => "-Vgcc_ntox86_64_cxx",
21192119
_ => {
@@ -3338,9 +3338,10 @@ impl Build {
33383338
name = format!("wr-{}", tool).into();
33393339
self.cmd(&name)
33403340
} else if target.os == "nto" {
3341+
// Ref: https://www.qnx.com/developers/docs/8.0/com.qnx.doc.neutrino.utilities/topic/a/ar.html
33413342
name = match target.arch {
3342-
"i586" | "x86" => format!("ntox86-{}", tool).into(),
3343-
"aarch64" | "x86_64" => format!("nto{}-{}", target.arch, tool).into(),
3343+
"i586" => format!("ntox86-{}", tool).into(),
3344+
"x86" | "aarch64" | "x86_64" => format!("nto{}-{}", target.arch, tool).into(),
33443345
_ => {
33453346
return Err(Error::new(
33463347
ErrorKind::InvalidTarget,

0 commit comments

Comments
 (0)