Skip to content
Snippets Groups Projects
Commit 971027d5 authored by gnzlbg's avatar gnzlbg
Browse files

Fix bitrig build

parent 1c264bda
No related branches found
No related tags found
No related merge requests found
......@@ -52,42 +52,6 @@ test_target() {
fi
}
rustup component add rust-src || true
cargo install xargo || true
# FIXME: https://github.com/rust-lang/rust/issues/58564
# sparc-unknown-linux-gnu
RUST_LINUX_NO_CORE_TARGETS="\
x86_64-unknown-dragonfly \
aarch64-pc-windows-msvc \
aarch64-unknown-cloudabi \
armv7-unknown-cloudabi-eabihf \
i586-pc-windows-msvc \
i686-pc-windows-gnu \
i686-pc-windows-msvc \
i686-unknown-cloudabi \
i686-unknown-haiku \
i686-unknown-netbsd \
nvptx64-nvidia-cuda \
powerpc-unknown-linux-gnuspe \
riscv32imac-unknown-none-elf \
riscv32imc-unknown-none-elf \
sparc64-unknown-netbsd \
thumbv8m.main-none-eabi \
x86_64-pc-windows-gnu \
x86_64-pc-windows-msvc
x86_64-unknown-bitrig \
x86_64-unknown-haiku \
x86_64-unknown-openbsd
"
for TARGET in $RUST_LINUX_NO_CORE_TARGETS; do
if [ "${RUST}" = "nightly" ]; then
RUST_LIBC_NO_CORE_BUILD=1 test_target xargo "$TARGET" 1
fi
done
RUST_LINUX_TARGETS="\
aarch64-linux-android \
aarch64-unknown-linux-gnu \
......@@ -206,3 +170,38 @@ esac
for TARGET in $TARGETS; do
test_target cargo "$TARGET"
done
# FIXME: https://github.com/rust-lang/rust/issues/58564
# sparc-unknown-linux-gnu
RUST_LINUX_NO_CORE_TARGETS="\
x86_64-unknown-dragonfly \
aarch64-pc-windows-msvc \
aarch64-unknown-cloudabi \
armv7-unknown-cloudabi-eabihf \
i586-pc-windows-msvc \
i686-pc-windows-gnu \
i686-pc-windows-msvc \
i686-unknown-cloudabi \
i686-unknown-haiku \
i686-unknown-netbsd \
nvptx64-nvidia-cuda \
powerpc-unknown-linux-gnuspe \
riscv32imac-unknown-none-elf \
riscv32imc-unknown-none-elf \
sparc64-unknown-netbsd \
thumbv8m.main-none-eabi \
x86_64-pc-windows-gnu \
x86_64-pc-windows-msvc
x86_64-unknown-bitrig \
x86_64-unknown-haiku \
x86_64-unknown-openbsd
"
if [ "${RUST}" = "nightly" ]; then
rustup component add rust-src || true
cargo install xargo || true
for TARGET in $RUST_LINUX_NO_CORE_TARGETS; do
RUST_LIBC_NO_CORE_BUILD=1 test_target xargo "$TARGET" 1
done
fi
pub type c_long = i32;
pub type c_ulong = u32;
// should be pub(crate), but that requires Rust 1.18.0
cfg_if! {
if #[cfg(libc_const_size_of)] {
#[doc(hidden)]
pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_int>() - 1;
} else {
#[doc(hidden)]
pub const _ALIGNBYTES: usize = 4 - 1;
}
}
......@@ -8,3 +8,14 @@ pub const PT_GETREGS: ::c_int = PT_FIRSTMACH + 1;
pub const PT_SETREGS: ::c_int = PT_FIRSTMACH + 2;
pub const PT_GETFPREGS: ::c_int = PT_FIRSTMACH + 3;
pub const PT_SETFPREGS: ::c_int = PT_FIRSTMACH + 4;
// should be pub(crate), but that requires Rust 1.18.0
cfg_if! {
if #[cfg(libc_const_size_of)] {
#[doc(hidden)]
pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_long>() - 1;
} else {
#[doc(hidden)]
pub const _ALIGNBYTES: usize = 8 - 1;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment