Skip to content

Commit d2ba46f

Browse files
authored
Merge pull request #417 from BaoshanPang/vxworks
Support VxWorks
2 parents 5c5ee1d + 7053adf commit d2ba46f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,9 @@ impl Build {
17611761
target == "wasm32-unknown-wasi" ||
17621762
target == "wasm32-unknown-unknown" {
17631763
"clang".to_string()
1764-
} else if self.get_host()? != target {
1764+
} else if target.contains("vxworks") {
1765+
"vx-cxx".to_string()
1766+
} else if self.get_host()? != target {
17651767
// CROSS_COMPILE is of the form: "arm-linux-gnueabi-"
17661768
let cc_env = self.getenv("CROSS_COMPILE");
17671769
let cross_compile = cc_env.as_ref().map(|s| s.trim_right_matches('-'));

0 commit comments

Comments
 (0)