mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Explain the LLVM bug on Windows in more detail
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
// LLVM throws an error if a function with the
|
// The x86-interrupt calling convention leads to the following LLVM error
|
||||||
// x86-interrupt calling convention is compiled
|
// when compiled for a Windows target: "offset is not a multiple of 16". This
|
||||||
// for a Windows system.
|
// happens for example when running `cargo test` on Windows. To avoid this
|
||||||
|
// problem we skip compilation of this module on Windows.
|
||||||
#![cfg(not(windows))]
|
#![cfg(not(windows))]
|
||||||
|
|
||||||
use crate::println;
|
use crate::println;
|
||||||
|
|||||||
Reference in New Issue
Block a user