diff options
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"); } |
