We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 663fb7c + 8874f3b commit 2652f52Copy full SHA for 2652f52
ctest/src/lib.rs
@@ -1123,6 +1123,15 @@ fn default_cfg(target: &str) -> Vec<(String, Option<String>)> {
1123
("vxworks", "unix", "")
1124
} else if target.contains("haiku") {
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
1130
+ .rfind(before_env)
1131
+ .map(|i| &target[i + before_env.len()..])
1132
+ .or(Some(""))
1133
+ .unwrap();
1134
+ ("qnx", "unix", env)
1135
} else {
1136
panic!("unknown os/family: {}", target)
1137
};
0 commit comments