Skip to content

Commit

Permalink
removing freebsd 11 EOL proposal.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Mar 5, 2023
1 parent da4f8f8 commit e30b5ac
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 627 deletions.
9 changes: 1 addition & 8 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,13 @@ fn main() {
);
}

// The ABI of libc used by libstd is backward compatible with FreeBSD 10.
// The ABI of libc from crates.io is backward compatible with FreeBSD 11.
//
// On CI, we detect the actual FreeBSD version and match its ABI exactly,
// running tests to ensure that the ABI is correct.
match which_freebsd() {
Some(10) if libc_ci || rustc_dep_of_std => {
println!("cargo:rustc-cfg=freebsd10")
}
Some(11) if libc_ci => println!("cargo:rustc-cfg=freebsd11"),
Some(12) if libc_ci => println!("cargo:rustc-cfg=freebsd12"),
Some(13) if libc_ci => println!("cargo:rustc-cfg=freebsd13"),
Some(14) if libc_ci => println!("cargo:rustc-cfg=freebsd14"),
Some(_) | None => println!("cargo:rustc-cfg=freebsd11"),
Some(_) | None => println!("cargo:rustc-cfg=freebsd12"),
}

// On CI: deny all warnings
Expand Down
2 changes: 1 addition & 1 deletion ci/dox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ while read -r target; do
rustup target add "${target}" || true

# Enable extra configuration flags:
export RUSTDOCFLAGS="--cfg freebsd11"
export RUSTDOCFLAGS="--cfg freebsd12"

# If cargo doc fails, then try with unstable feature:
if ! cargo doc --target "${target}" \
Expand Down
32 changes: 0 additions & 32 deletions src/unix/bsd/freebsdlike/freebsd/freebsd11/b64.rs

This file was deleted.

Loading

0 comments on commit e30b5ac

Please sign in to comment.