Skip to content

Commit 82eec26

Browse files
committed
support "vxworks" and "nto" OSes on get_base_archiver_variant
Signed-off-by: onur-ozkan <[email protected]>
1 parent 0f8834d commit 82eec26

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/lib.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3334,6 +3334,21 @@ impl Build {
33343334
// Use the GNU-variant to match other Unix systems.
33353335
name = format!("g{}", tool).into();
33363336
self.cmd(&name)
3337+
} else if target.os == "vxworks" {
3338+
name = format!("wr-{}", tool).into();
3339+
self.cmd(&name)
3340+
} else if target.os == "nto" {
3341+
name = match target.arch {
3342+
"i586" | "x86" => format!("ntox86-{}", tool).into(),
3343+
"aarch64" | "x86_64" => format!("nto{}-{}", target.arch, tool).into(),
3344+
_ => {
3345+
return Err(Error::new(
3346+
ErrorKind::InvalidTarget,
3347+
format!("Unknown architecture for Neutrino QNX: {}", target.arch),
3348+
))
3349+
}
3350+
};
3351+
self.cmd(&name)
33373352
} else if self.get_is_cross_compile()? {
33383353
match self.prefix_for_target(&self.get_raw_target()?) {
33393354
Some(prefix) => {

0 commit comments

Comments
 (0)