Skip to content

Commit 825f803

Browse files
committed
Merge pull request #342 from alexchandel/patch-1
Use Inline assembly for msvc target from non-windows host
2 parents 3382b0e + 51ce533 commit 825f803

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ use std::path::Path;
1111

1212
fn main() {
1313
let target = env::var("TARGET").unwrap();
14-
if target.contains("msvc") {
14+
let host = env::var("HOST").unwrap();
15+
if target.contains("msvc") && host.contains("windows") {
1516
let mut config = gcc::Config::new();
1617
config.file("src/util_helpers.asm");
1718
config.file("src/aesni_helpers.asm");

0 commit comments

Comments
 (0)