File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ public struct Triple {
32
32
33
33
public enum Arch : String {
34
34
case x86_64
35
+ case i686
35
36
case ppc64le
36
37
case s390x
37
38
case aarch64
@@ -113,7 +114,8 @@ public struct Triple {
113
114
}
114
115
115
116
public static let macOS = try ! Triple ( " x86_64-apple-macosx10.10 " )
116
- public static let x86Linux = try ! Triple ( " x86_64-unknown-linux " )
117
+ public static let x86_64Linux = try ! Triple ( " x86_64-unknown-linux " )
118
+ public static let i686Linux = try ! Triple ( " i686-unknown-linux " )
117
119
public static let ppc64leLinux = try ! Triple ( " powerpc64le-unknown-linux " )
118
120
public static let s390xLinux = try ! Triple ( " s390x-unknown-linux " )
119
121
public static let arm64Linux = try ! Triple ( " aarch64-unknown-linux " )
@@ -127,7 +129,9 @@ public struct Triple {
127
129
public static let hostTriple : Triple = . windows
128
130
#elseif os(Linux)
129
131
#if arch(x86_64)
130
- public static let hostTriple : Triple = . x86Linux
132
+ public static let hostTriple : Triple = . x86_64Linux
133
+ #elseif arch(i386)
134
+ public static let hostTriple : Triple = . i686Linux
131
135
#elseif arch(powerpc64le)
132
136
public static let hostTriple : Triple = . ppc64leLinux
133
137
#elseif arch(s390x)
Original file line number Diff line number Diff line change @@ -1035,6 +1035,8 @@ def main():
1035
1035
elif platform .system () == 'Linux' :
1036
1036
if platform .machine () == 'x86_64' :
1037
1037
build_target = "x86_64-unknown-linux"
1038
+ elif platform .machine () == "i686" :
1039
+ build_target = "i686-unknown-linux"
1038
1040
elif platform .machine () == 's390x' :
1039
1041
build_target = "s390x-unknown-linux"
1040
1042
elif platform .machine () == 'ppc64le' :
You can’t perform that action at this time.
0 commit comments