Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Vxworks #1408

Merged
merged 2 commits into from Aug 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions ci/build.sh
Expand Up @@ -224,6 +224,13 @@ x86_64-unknown-haiku \
x86_64-unknown-hermit \
x86_64-unknown-l4re-uclibc \
x86_64-unknown-openbsd \
armv7-wrs-vxworks \
aarch64-wrs-vxworks \
i686-wrs-vxworks \
x86_64-wrs-vxworks \
powerpc-wrs-vxworks \
powerpc-wrs-vxworks-spe \
powerpc64-wrs-vxworks \
"

if [ "${RUST}" = "nightly" ] && [ "${OS}" = "linux" ]; then
Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Expand Up @@ -114,6 +114,12 @@ cfg_if! {

mod switch;
pub use switch::*;
} else if #[cfg(target_os = "vxworks")] {
mod fixed_width_ints;
pub use fixed_width_ints::*;
gnzlbg marked this conversation as resolved.
Show resolved Hide resolved

mod vxworks;
pub use vxworks::*;
} else if #[cfg(unix)] {
mod fixed_width_ints;
pub use fixed_width_ints::*;
Expand Down
3 changes: 3 additions & 0 deletions src/vxworks/aarch64.rs
@@ -0,0 +1,3 @@
pub type c_char = u8;
pub type c_long = i64;
pub type c_ulong = u64;
3 changes: 3 additions & 0 deletions src/vxworks/arm.rs
@@ -0,0 +1,3 @@
pub type c_char = u8;
pub type c_long = i32;
pub type c_ulong = u32;
2 changes: 2 additions & 0 deletions src/vxworks/armv7.rs
@@ -0,0 +1,2 @@
pub type c_long = i32;
pub type c_ulong = u32;