Skip to content

Commit 8a17c47

Browse files
committed
Add support for vxWorks using vx-cc
1 parent 5c5ee1d commit 8a17c47

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-cc".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)