]> git.lizzy.rs Git - rust.git/commitdiff
Don't announce CloudABI as being UNIX.
authorEd Schouten <ed@nuxi.nl>
Sun, 31 Dec 2017 10:14:38 +0000 (11:14 +0100)
committerEd Schouten <ed@nuxi.nl>
Sun, 31 Dec 2017 10:14:38 +0000 (11:14 +0100)
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).

src/librustc_back/target/cloudabi_base.rs

index c29130bdf8e9619955432a33dad24230264ed552..3353e7936f0d5880d9d0ba1bb7809da9176c0ac6 100644 (file)
@@ -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,