Skip to content

Commit 5b42999

Browse files
committed
windows, take 3
1 parent 8887250 commit 5b42999

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ test_script:
3737

3838
before_deploy:
3939
# Generate artifacts for release
40-
- RUSTFLAGS="-C target-feature=+ssse3" cargo build --release --features simd-accel
40+
- SET RUSTFLAGS="-C target-feature=+ssse3"
41+
- cargo build --release --features simd-accel
4142
- mkdir staging
4243
# TODO update this part to copy the artifacts that make sense for your project
4344
- copy target\release\xrep.exe staging

src/sys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ pub fn stdout_is_atty() -> bool {
3737
unsafe {
3838
let fd = winapi::winbase::STD_OUTPUT_HANDLE;
3939
let mut out = 0;
40-
kernel32::GetConsoleMode(handle, &mut out) != 0
40+
kernel32::GetConsoleMode(kernel32::GetStdHandle(fd), &mut out) != 0
4141
}
4242
}

0 commit comments

Comments
 (0)