1
0

build.rs 661 B

12345678910111213
  1. fn check_gnu() {
  2. // WARN about wry support on windows gnu targets. GNU windows targets don't work well in wry currently
  3. if std::env::var("CARGO_CFG_WINDOWS").is_ok()
  4. && std::env::var("CARGO_CFG_TARGET_ENV").unwrap() == "gnu"
  5. && !cfg!(feature = "gnu")
  6. {
  7. println!("cargo:warning=GNU windows targets have some limitations within Wry. Using the MSVC windows toolchain is recommended. If you would like to use continue using GNU, you can read https://github.com/wravery/webview2-rs#cross-compilation and disable this warning by adding the gnu feature to dioxus-desktop in your Cargo.toml")
  8. }
  9. }
  10. fn main() {
  11. check_gnu();
  12. }