about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEd Schouten <ed@nuxi.nl>2017-12-31 11:14:38 +0100
committerEd Schouten <ed@nuxi.nl>2017-12-31 11:14:38 +0100
commit468523312259c851b1a409d0d7f702659bb5122d (patch)
tree2fc0e1225e5bd99353c534111deaa41a264b927a
parent2d74ce292ef067dc280046b7a43f89c1c711d005 (diff)
downloadrust-468523312259c851b1a409d0d7f702659bb5122d.tar.gz
rust-468523312259c851b1a409d0d7f702659bb5122d.zip
Don't announce CloudABI as being UNIX.
This was originally brought in, because the definitions are based on
those of FreeBSD, Linux, etc. Even though CloudABI is based on POSIX, it
uses a subset that is so small that it's not reasonable to call it POSIX.

Now that I'm porting libstd, I'm running into some spots where I have to
explicitly disable code paths that were enabled by cfg(unix).
-rw-r--r--src/librustc_back/target/cloudabi_base.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_back/target/cloudabi_base.rs b/src/librustc_back/target/cloudabi_base.rs
index c29130bdf8e..3353e7936f0 100644
--- a/src/librustc_back/target/cloudabi_base.rs
+++ b/src/librustc_back/target/cloudabi_base.rs
@@ -23,7 +23,7 @@ pub fn opts() -> TargetOptions {
 
     TargetOptions {
         executables: true,
-        target_family: Some("unix".to_string()),
+        target_family: None,
         linker_is_gnu: true,
         pre_link_args: args,
         position_independent_executables: true,