Add supporting for vxWorks

r? @alexcrichton
This commit is contained in:
Baoshan Pang
2019-07-15 23:57:53 -07:00
parent 4a95e9704d
commit 4c0c0f6158
69 changed files with 8791 additions and 3 deletions

View File

@@ -1263,6 +1263,12 @@ fn get_concurrency() -> usize {
1
}
#[cfg(target_os = "vxworks")]
fn num_cpus() -> usize {
// FIXME: Implement num_cpus on vxWorks
1
}
#[cfg(any(
all(target_arch = "wasm32", not(target_os = "emscripten")),
all(target_vendor = "fortanix", target_env = "sgx")