We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6df1629 commit 553b13cCopy full SHA for 553b13c
src/lib.rs
@@ -95,13 +95,13 @@ pub mod binary;
95
#[cfg(feature = "builder")]
96
pub mod disk_image;
97
98
-#[cfg(target_arch = "x86")]
+#[cfg(all(target_arch = "x86", not(feature = "builder")))]
99
compile_error!(
100
"This crate currently does not support 32-bit protected mode. \
101
See https://github.com/rust-osdev/bootloader/issues/70 for more information."
102
);
103
104
-#[cfg(not(any(target_arch = "x86_64", target_arch = "x86")))]
+#[cfg(all(not(target_arch = "x86_64"), not(target_arch = "x86"), not(feature = "builder")))]
105
compile_error!("This crate only supports the x86_64 architecture.");
106
107
/// Defines the entry point function.
0 commit comments