Skip to content

Commit ad30f54

Browse files
committed
Auto merge of #47089 - EdSchouten:cloudabi-is-not-unix, r=kennytm
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).
2 parents 9389e23 + 4685233 commit ad30f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/librustc_back/target/cloudabi_base.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub fn opts() -> TargetOptions {
2323

2424
TargetOptions {
2525
executables: true,
26-
target_family: Some("unix".to_string()),
26+
target_family: None,
2727
linker_is_gnu: true,
2828
pre_link_args: args,
2929
position_independent_executables: true,

0 commit comments

Comments
 (0)