Explain the LLVM bug on Windows in more detail

This commit is contained in:
Philipp Oppermann
2019-01-25 14:37:46 +01:00
parent b96636984c
commit e0ed423e52

View File

@@ -1,6 +1,7 @@
// LLVM throws an error if a function with the
// x86-interrupt calling convention is compiled
// for a Windows system.
// 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 crate::println;