File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1123,15 +1123,17 @@ fn default_cfg(target: &str) -> Vec<(String, Option<String>)> {
1123
1123
( "vxworks" , "unix" , "" )
1124
1124
} else if target. contains ( "haiku" ) {
1125
1125
( "haiku" , "unix" , "" )
1126
- } else if target. contains ( "qnx" ) {
1127
- // Set an environment string if provided, empty str otherwise
1128
- let before_env = "-qnx-" ;
1129
- let env = target
1126
+ } else if target. contains ( "nto-qnx" ) {
1127
+ let before_env = "nto-qnx" ;
1128
+ let version = target
1130
1129
. rfind ( before_env)
1131
1130
. map ( |i| & target[ i + before_env. len ( ) ..] )
1132
- . or ( Some ( "" ) )
1133
1131
. unwrap ( ) ;
1134
- ( "qnx" , "unix" , env)
1132
+ let env = match version {
1133
+ "7.1.0" => "nto71" ,
1134
+ _ => panic ! ( "Uknown version" ) ,
1135
+ } ;
1136
+ ( "nto" , "unix" , env)
1135
1137
} else {
1136
1138
panic ! ( "unknown os/family: {}" , target)
1137
1139
} ;
You can’t perform that action at this time.
0 commit comments