Skip to content

Commit

Permalink
Auto merge of #60775 - hellow554:no_bitrig, r=joshtriplett
Browse files Browse the repository at this point in the history
Remove bitrig support from rust

Resolves #60743

using `find` and `rg` I delete every occurence of "bitrig" in the sources, expect for the llvm submodule (is this correct?).

There's also this file https://github.com/rust-lang/rls/blob/5b8e99bb61958ca8abcb7c5eda70521726be1065/rls-analysis/test_data/rust-analysis/libstd-af9bacceee784405.json which contains a bitrig string in it. What to do with that?
  • Loading branch information
bors committed May 15, 2019
2 parents 372be4f + cc314b0 commit c84a7ab
Show file tree
Hide file tree
Showing 47 changed files with 21 additions and 363 deletions.
1 change: 0 additions & 1 deletion src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ def default_build_triple():
# The goal here is to come up with the same triple as LLVM would,
# at least for the subset of platforms we're willing to target.
ostype_mapper = {
'Bitrig': 'unknown-bitrig',
'Darwin': 'apple-darwin',
'DragonFly': 'unknown-dragonfly',
'FreeBSD': 'unknown-freebsd',
Expand Down
2 changes: 1 addition & 1 deletion src/build_helper/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pub fn gnu_target(target: &str) -> &str {
}

pub fn make(host: &str) -> PathBuf {
if host.contains("bitrig") || host.contains("dragonfly") || host.contains("freebsd")
if host.contains("dragonfly") || host.contains("freebsd")
|| host.contains("netbsd") || host.contains("openbsd")
{
PathBuf::from("gmake")
Expand Down
1 change: 0 additions & 1 deletion src/librustc_data_structures/flock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ cfg_if! {
}

#[cfg(any(target_os = "dragonfly",
target_os = "bitrig",
target_os = "netbsd",
target_os = "openbsd"))]
mod os {
Expand Down
16 changes: 0 additions & 16 deletions src/librustc_target/spec/bitrig_base.rs

This file was deleted.

3 changes: 0 additions & 3 deletions src/librustc_target/spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ mod android_base;
mod apple_base;
mod apple_ios_base;
mod arm_base;
mod bitrig_base;
mod cloudabi_base;
mod dragonfly_base;
mod freebsd_base;
Expand Down Expand Up @@ -390,8 +389,6 @@ supported_targets! {
("i686-unknown-dragonfly", i686_unknown_dragonfly),
("x86_64-unknown-dragonfly", x86_64_unknown_dragonfly),

("x86_64-unknown-bitrig", x86_64_unknown_bitrig),

("aarch64-unknown-openbsd", aarch64_unknown_openbsd),
("i686-unknown-openbsd", i686_unknown_openbsd),
("x86_64-unknown-openbsd", x86_64_unknown_openbsd),
Expand Down
23 changes: 0 additions & 23 deletions src/librustc_target/spec/x86_64_unknown_bitrig.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/librustdoc/clean/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ impl<'a> fmt::Display for Html<'a> {
("debug_assertions", None) => "debug-assertions enabled",
("target_os", Some(os)) => match &*os.as_str() {
"android" => "Android",
"bitrig" => "Bitrig",
"dragonfly" => "DragonFly BSD",
"emscripten" => "Emscripten",
"freebsd" => "FreeBSD",
Expand Down
3 changes: 1 addition & 2 deletions src/libstd/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ fn main() {
} else if target.contains("netbsd") {
println!("cargo:rustc-link-lib=pthread");
println!("cargo:rustc-link-lib=rt");
} else if target.contains("dragonfly") || target.contains("bitrig") ||
target.contains("openbsd") {
} else if target.contains("dragonfly") || target.contains("openbsd") {
println!("cargo:rustc-link-lib=pthread");
} else if target.contains("solaris") {
println!("cargo:rustc-link-lib=socket");
Expand Down
1 change: 0 additions & 1 deletion src/libstd/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,6 @@ pub mod consts {
/// - ios
/// - freebsd
/// - dragonfly
/// - bitrig
/// - netbsd
/// - openbsd
/// - solaris
Expand Down
4 changes: 2 additions & 2 deletions src/libstd/net/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -974,9 +974,9 @@ mod tests {
// s has been moved into the tsa call
}

// FIXME: figure out why this fails on openbsd and bitrig and fix it
// FIXME: figure out why this fails on openbsd and fix it
#[test]
#[cfg(not(any(windows, target_os = "openbsd", target_os = "bitrig")))]
#[cfg(not(any(windows, target_os = "openbsd")))]
fn to_socket_addr_str_bad() {
assert!(tsa("1200::AB00:1234::2552:7777:1313:34300").is_err());
}
Expand Down
4 changes: 2 additions & 2 deletions src/libstd/net/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1595,9 +1595,9 @@ mod tests {
assert_eq!(format!("{:?}", stream), compare);
}

// FIXME: re-enabled bitrig/openbsd tests once their socket timeout code
// FIXME: re-enabled openbsd tests once their socket timeout code
// no longer has rounding errors.
#[cfg_attr(any(target_os = "bitrig", target_os = "netbsd", target_os = "openbsd"), ignore)]
#[cfg_attr(any(target_os = "netbsd", target_os = "openbsd"), ignore)]
#[cfg_attr(target_env = "sgx", ignore)] // FIXME: https://github.com/fortanix/rust-sgx/issues/31
#[test]
fn timeouts() {
Expand Down
4 changes: 2 additions & 2 deletions src/libstd/net/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1024,9 +1024,9 @@ mod tests {
assert_eq!(format!("{:?}", udpsock), compare);
}

// FIXME: re-enabled bitrig/openbsd/netbsd tests once their socket timeout code
// FIXME: re-enabled openbsd/netbsd tests once their socket timeout code
// no longer has rounding errors.
#[cfg_attr(any(target_os = "bitrig", target_os = "netbsd", target_os = "openbsd"), ignore)]
#[cfg_attr(any(target_os = "netbsd", target_os = "openbsd"), ignore)]
#[test]
fn timeouts() {
let addr = next_test_ip4();
Expand Down
138 changes: 0 additions & 138 deletions src/libstd/os/bitrig/fs.rs

This file was deleted.

6 changes: 0 additions & 6 deletions src/libstd/os/bitrig/mod.rs

This file was deleted.

71 changes: 0 additions & 71 deletions src/libstd/os/bitrig/raw.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/libstd/os/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ cfg_if! {
}

#[cfg(target_os = "android")] pub mod android;
#[cfg(target_os = "bitrig")] pub mod bitrig;
#[cfg(target_os = "dragonfly")] pub mod dragonfly;
#[cfg(target_os = "freebsd")] pub mod freebsd;
#[cfg(target_os = "haiku")] pub mod haiku;
Expand Down
1 change: 0 additions & 1 deletion src/libstd/sys/unix/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ impl DoubleEndedIterator for Args {
target_os = "android",
target_os = "freebsd",
target_os = "dragonfly",
target_os = "bitrig",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
Expand Down
11 changes: 0 additions & 11 deletions src/libstd/sys/unix/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,6 @@ pub mod os {
pub const EXE_EXTENSION: &str = "";
}

#[cfg(target_os = "bitrig")]
pub mod os {
pub const FAMILY: &str = "unix";
pub const OS: &str = "bitrig";
pub const DLL_PREFIX: &str = "lib";
pub const DLL_SUFFIX: &str = ".so";
pub const DLL_EXTENSION: &str = "so";
pub const EXE_SUFFIX: &str = "";
pub const EXE_EXTENSION: &str = "";
}

#[cfg(target_os = "netbsd")]
pub mod os {
pub const FAMILY: &str = "unix";
Expand Down
Loading

0 comments on commit c84a7ab

Please sign in to comment.