1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00
alacritty/winpty/build.rs

15 lines
518 B
Rust
Raw Normal View History

use std::fs::copy;
use std::path::Path;
fn main() {
// The working directory for `cargo test` is in the deps folder, not the debug/release root
if cfg!(test) && Path::new("target").exists() {
#[cfg(debug_assertions)]
2019-04-01 18:41:20 -04:00
copy("../extra/windows/x86_64/winpty-agent.exe", "target/debug/deps/winpty-agent.exe")
2019-03-30 12:48:36 -04:00
.unwrap();
#[cfg(not(debug_assertions))]
2019-04-01 18:41:20 -04:00
copy("../extra/windows/x86_64/winpty-agent.exe", "target/release/deps/winpty-agent.exe")
2019-03-30 12:48:36 -04:00
.unwrap();
}
}