Skip to content

Commit 2a59767

Browse files
committed
Define i686 when TARGET=i686*
1 parent 37b4e73 commit 2a59767

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libc-test/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use std::env;
77
fn main() {
88
let target = env::var("TARGET").unwrap();
99
let aarch64 = target.contains("aarch64");
10+
let i686 = target.contains("i686");
1011
let x86_64 = target.contains("x86_64");
1112
let windows = target.contains("windows");
1213
let mingw = target.contains("windows-gnu");
@@ -187,7 +188,7 @@ fn main() {
187188
if x86_64 {
188189
cfg.header("sys/io.h");
189190
}
190-
if x86 || x86_64 {
191+
if i686 || x86_64 {
191192
cfg.header("sys/reg.h");
192193
}
193194
}

0 commit comments

Comments
 (0)