Skip to content

Commit a8d2705

Browse files
committed
This fixes cross-compilation.
1 parent 89d1a51 commit a8d2705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn main() {
3131
// GCC doesn't like some of the assembly that we use on that
3232
// platform.
3333
cfg.compiler(Path::new("clang"));
34-
} else {
34+
} else if target == host {
3535
cfg.compiler(Path::new("cc"));
3636
}
3737
}

0 commit comments

Comments
 (0)