Skip to content

Commit facf617

Browse files
authored
VxWorks: use wr-cc for C file, use wr-c++ for CPP file (#546)
1 parent 15284d8 commit facf617

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2002,7 +2002,11 @@ impl Build {
20022002
{
20032003
"clang".to_string()
20042004
} else if target.contains("vxworks") {
2005-
"wr-c++".to_string()
2005+
if self.cpp {
2006+
"wr-c++".to_string()
2007+
} else {
2008+
"wr-cc".to_string()
2009+
}
20062010
} else if self.get_host()? != target {
20072011
let prefix = self.prefix_for_target(&target);
20082012
match prefix {

0 commit comments

Comments
 (0)