Don't compile the interrupts module on Windows to fix cargo test

This commit is contained in:
Philipp Oppermann
2018-10-26 16:08:51 +02:00
parent 250a80dd77
commit b1c8df2a7f
2 changed files with 36 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
// The x86-interrupt calling convention leads to the following LLVM error
// when compiled for a Windows target: "offset is not a multiple of 16". This
// happens for example when running `cargo test` on Windows. To avoid this
// problem we skip compilation of this module on Windows.
#![cfg(not(windows))]
use gdt;
use pic8259_simple::ChainedPics;
use spin;