Browse Source
Merge pull request #417 from BaoshanPang/vxworks
Support VxWorks
wip-new-parallel
Alex Crichton
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
src/lib.rs
|
|
@ -1761,7 +1761,9 @@ impl Build { |
|
|
|
target == "wasm32-unknown-wasi" || |
|
|
|
target == "wasm32-unknown-unknown" { |
|
|
|
"clang".to_string() |
|
|
|
} else if self.get_host()? != target { |
|
|
|
} else if target.contains("vxworks") { |
|
|
|
"vx-cxx".to_string() |
|
|
|
} else if self.get_host()? != target { |
|
|
|
// CROSS_COMPILE is of the form: "arm-linux-gnueabi-"
|
|
|
|
let cc_env = self.getenv("CROSS_COMPILE"); |
|
|
|
let cross_compile = cc_env.as_ref().map(|s| s.trim_right_matches('-')); |
|
|
|