Skip to content

Commit

Permalink
VxWorks: use wr-cc for C file, use wr-c++ for CPP file
Browse files Browse the repository at this point in the history
  • Loading branch information
bpangWR committed Aug 20, 2020
1 parent 15284d8 commit dd8d90f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,11 @@ impl Build {
{
"clang".to_string()
} else if target.contains("vxworks") {
"wr-c++".to_string()
if self.cpp {
"wr-c++".to_string()
} else {
"wr-cc".to_string()
}
} else if self.get_host()? != target {
let prefix = self.prefix_for_target(&target);
match prefix {
Expand Down

0 comments on commit dd8d90f

Please sign in to comment.