From e0ed423e5293b000a370820150aea4ba456b98e2 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 25 Jan 2019 14:37:46 +0100 Subject: [PATCH] Explain the LLVM bug on Windows in more detail --- src/interrupts.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/interrupts.rs b/src/interrupts.rs index 8eefc8e0..ffe400fd 100644 --- a/src/interrupts.rs +++ b/src/interrupts.rs @@ -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;