@@ -2113,7 +2113,7 @@ impl Build {
2113
2113
// This assumes qcc/q++ as compiler, which is currently the only supported compiler for QNX.
2114
2114
// See for details: https://github.com/rust-lang/cc-rs/pull/1319
2115
2115
let arg = match target. arch {
2116
- "i586 " | "x86 " => "-Vgcc_ntox86_cxx" ,
2116
+ "x86 " | "i586 " => "-Vgcc_ntox86_cxx" ,
2117
2117
"aarch64" => "-Vgcc_ntoaarch64le_cxx" ,
2118
2118
"x86_64" => "-Vgcc_ntox86_64_cxx" ,
2119
2119
_ => {
@@ -3338,9 +3338,10 @@ impl Build {
3338
3338
name = format ! ( "wr-{}" , tool) . into ( ) ;
3339
3339
self . cmd ( & name)
3340
3340
} else if target. os == "nto" {
3341
+ // Ref: https://www.qnx.com/developers/docs/8.0/com.qnx.doc.neutrino.utilities/topic/a/ar.html
3341
3342
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 ( ) ,
3344
3345
_ => {
3345
3346
return Err ( Error :: new (
3346
3347
ErrorKind :: InvalidTarget ,
0 commit comments