diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-07 00:07:24 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-07 16:29:44 +0300 |
| commit | 3c2b46d24aa6c8011a1e198143752f2aa414d585 (patch) | |
| tree | a52280bccc824ca656f8bc986a756f30901974e4 /build.rs | |
| parent | 5d7e56737ef30d9de5802b0684a9428c40131dda (diff) | |
feat: add native windows beta support
Diffstat (limited to 'build.rs')
| -rw-r--r-- | build.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"); } |
