Skip to content

Commit

Permalink
Don't announce CloudABI as being UNIX.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
EdSchouten committed Dec 31, 2017
1 parent 2d74ce2 commit 4685233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_back/target/cloudabi_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4685233

Please sign in to comment.