We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8aedfb commit 22356fcCopy full SHA for 22356fc
build.rs
@@ -2,10 +2,12 @@ fn main() {
2
println!("cargo:rerun-if-changed=build.rs");
3
4
#[cfg(all(feature = "external_asm", windows))]
5
- compile_error!("\"external_asm\" feature is not available on windows!");
+ compile_error!("\"external_asm\" feature is not available on windows toolchain!");
6
7
- #[cfg(all(feature = "instructions", not(target_arch = "x86_64")))]
8
- compile_error!("\"instructions\" feature is only available for x86_64 targets!");
+ #[cfg(feature = "instructions")]
+ if std::env::var("CARGO_CFG_TARGET_ARCH").unwrap() != "x86_64" {
9
+ panic!("\"instructions\" feature is only available for x86_64 targets!");
10
+ }
11
12
#[cfg(all(
13
feature = "instructions",
0 commit comments