diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-11-10 18:29:49 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-11-10 18:29:49 -0500 |
| commit | a890380b6aaf68f97a29f2224bcb06295c292596 (patch) | |
| tree | a53cdd63322125c90a93677aabf547d65365efc8 /std/os/linux.zig | |
| parent | ca87f55a7b8416e0f0922af7178a8774e81eba97 (diff) | |
| download | zig-a890380b6aaf68f97a29f2224bcb06295c292596.tar.gz zig-a890380b6aaf68f97a29f2224bcb06295c292596.zip | |
fix windows trying to run linux-only tests
Diffstat (limited to 'std/os/linux.zig')
| -rw-r--r-- | std/os/linux.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/std/os/linux.zig b/std/os/linux.zig index 8fb1ac511a..5951f9d7bc 100644 --- a/std/os/linux.zig +++ b/std/os/linux.zig @@ -811,5 +811,9 @@ pub fn timerfd_settime(fd: i32, flags: u32, new_value: &const itimerspec, old_va } test "import linux_test" { - _ = @import("linux_test.zig"); + // TODO lazy analysis should prevent this test from being compiled on windows, but + // it is still compiled on windows + if (builtin.os == builtin.Os.linux) { + _ = @import("linux_test.zig"); + } } |
