diff --git a/build.rs b/build.rs index 4a93a19994b91298d7fb8476216a539407935e0c..2928f3ac0c1710e947790b6660df3ced4496a653 100644 --- a/build.rs +++ b/build.rs @@ -11,12 +11,12 @@ extern crate nasm_rs; use std::env; use std::fs; -use std::fs::File; -use std::io::Write; use std::path::Path; fn main() { - if cfg!(target_arch = "x86_64") { + #[cfg(target_arch = "x86_64")] { + use std::fs::File; + use std::io::Write; let out_dir = env::var("OUT_DIR").unwrap(); { let dest_path = Path::new(&out_dir).join("config.asm");