Set the default DPI awareness for Zed (#8936)
### Description This is a part of #8809 Release Notes: - N/A
This commit is contained in:
parent
59faef5800
commit
8357039419
2 changed files with 18 additions and 1 deletions
|
@ -44,8 +44,17 @@ fn main() {
|
|||
}
|
||||
}
|
||||
|
||||
// todo!("windows"): This is to avoid stack overflow. Remove it when solved.
|
||||
if std::env::var("CARGO_CFG_TARGET_ENV").ok() == Some("msvc".to_string()) {
|
||||
// todo!("windows"): This is to avoid stack overflow. Remove it when solved.
|
||||
println!("cargo:rustc-link-arg=/stack:{}", 8 * 1024 * 1024);
|
||||
|
||||
let manifest = std::path::Path::new("resources/windows/manifest.xml");
|
||||
println!("cargo:rerun-if-changed={}", manifest.display());
|
||||
println!("cargo:rustc-link-arg-bins=/MANIFEST:EMBED");
|
||||
|
||||
println!(
|
||||
"cargo:rustc-link-arg-bins=/MANIFESTINPUT:{}",
|
||||
manifest.canonicalize().unwrap().display()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue