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 Jul 26, 2023
1 parent af676d1 commit 9e7d63b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 638 deletions.
13 changes: 4 additions & 9 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,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 => set_cfg("freebsd10"),
Some(11) if libc_ci => set_cfg("freebsd11"),
Some(12) if libc_ci => set_cfg("freebsd12"),
Some(13) if libc_ci => set_cfg("freebsd13"),
Some(14) if libc_ci => set_cfg("freebsd14"),
Some(_) | None => set_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=freebsd12"),
}

match emcc_version_code() {
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 9e7d63b

Please sign in to comment.