Do not build QEMU when generating docs
This commit is contained in:
parent
eed864eb36
commit
8870c50ff5
@ -66,6 +66,10 @@ fn main() {
|
|||||||
|
|
||||||
println!("cargo:rustc-cfg=cpu_target=\"{}\"", cpu_target);
|
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 = env::var_os("OUT_DIR").unwrap();
|
||||||
let out_dir = out_dir.to_string_lossy().to_string();
|
let out_dir = out_dir.to_string_lossy().to_string();
|
||||||
let out_dir_path = Path::new(&out_dir);
|
let out_dir_path = Path::new(&out_dir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user