Do not build QEMU when generating docs

This commit is contained in:
Andrea Fioraldi 2022-01-10 11:27:53 +01:00
parent eed864eb36
commit 8870c50ff5

View File

@ -66,6 +66,10 @@ fn main() {
println!("cargo:rustc-cfg=cpu_target=\"{}\"", cpu_target);
if std::env::var("DOCS_RS").is_ok() {
return; // only build when we're not generating docs
}
let out_dir = env::var_os("OUT_DIR").unwrap();
let out_dir = out_dir.to_string_lossy().to_string();
let out_dir_path = Path::new(&out_dir);