Skip to content

Commit b2582e8

Browse files
committed
wip
1 parent cac50d6 commit b2582e8

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

libc-test/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::env;
88
fn do_cc() {
99
let target = env::var("TARGET").unwrap();
1010
if cfg!(unix) {
11-
let exclude = ["wasi", "solaris", "illumos"];
11+
let exclude = ["wasi", "emscripten", "solaris", "illumos"];
1212
if !exclude.iter().any(|x| target.contains(x)) {
1313
cc::Build::new().file("src/cmsg.c").compile("cmsg");
1414
}

libc-test/test/cmsg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
extern crate libc;
55

66
#[cfg(unix)]
7-
#[cfg(not(any(target_os = "solaris", target_os = "illumos")))]
7+
#[cfg(not(any(target_os = "solaris", target_os = "illumos", target_os = "emscripten")))]
88
mod t {
99

1010
use libc::{self, c_uchar, c_uint, c_void, cmsghdr, msghdr};

libc-test/test/errqueue.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
extern crate libc;
44

55
#[cfg(any(target_os = "linux", target_os = "android"))]
6+
#[cfg(not(target_os = "emscripten"))]
67
mod t {
78
use libc::{self, sock_extended_err, sockaddr};
89

libc-test/test/linux_ipv6.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ extern crate libc;
44
use libc::*;
55

66
#[cfg(target_os = "linux")]
7+
#[cfg(not(target_os = "emscripten"))]
78
include!(concat!(env!("OUT_DIR"), "/linux_ipv6.rs"));
89

9-
#[cfg(not(target_os = "linux"))]
10+
#[cfg(any(target_os = "emscripten", not(target_os = "linux")))]
1011
fn main() {
1112
println!("PASSED 0 tests");
1213
}

libc-test/test/linux_termios.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ extern crate libc;
44
use libc::*;
55

66
#[cfg(any(target_os = "linux", target_os = "android"))]
7+
#[cfg(not(target_os = "emscripten"))]
78
include!(concat!(env!("OUT_DIR"), "/linux_termios.rs"));
89

9-
#[cfg(not(any(target_os = "linux", target_os = "android")))]
10+
#[cfg(any(target_os = "emscripten", not(any(target_os = "linux", target_os = "android"))))]
1011
fn main() {
1112
println!("PASSED 0 tests");
1213
}

0 commit comments

Comments
 (0)