From 3c2b46d24aa6c8011a1e198143752f2aa414d585 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sun, 7 Jun 2026 00:07:24 +0300 Subject: feat: add native windows beta support --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build.rs') diff --git a/build.rs b/build.rs index fc5bdd64..66ed2620 100644 --- a/build.rs +++ b/build.rs @@ -11,6 +11,8 @@ fn zig_target(target: &str) -> &str { "aarch64-unknown-linux-musl" => "aarch64-linux-musl", "x86_64-apple-darwin" => "x86_64-macos", "aarch64-apple-darwin" => "aarch64-macos", + "x86_64-pc-windows-msvc" => "x86_64-windows-msvc", + "aarch64-pc-windows-msvc" => "aarch64-windows-msvc", other => panic!("unsupported target for libghostty-vt build: {other}"), } } @@ -83,6 +85,8 @@ fn main() { if target.contains("apple-darwin") { let static_lib = lib_dir.join("libghostty-vt.a"); println!("cargo:rustc-link-arg={}", static_lib.display()); + } else if target.contains("windows-msvc") { + println!("cargo:rustc-link-lib=static=ghostty-vt-static"); } else { println!("cargo:rustc-link-lib=static=ghostty-vt"); } -- cgit v1.2.3