Skip to content

Commit bed2c7e

Browse files
committed
Add Support for i686 Targets
This enables support for 32-bit Linux, specifically tested as Debian Stretch.
1 parent 7df89db commit bed2c7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/target.py

+5
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class ArchType:
5353
shave = 39
5454
armv6 = 40
5555
s390x = 41
56+
i686 = 42
5657
# Do not assume that these are 1:1 mapping. This should follow
5758
# canonical naming conventions for arm, etc. architectures.
5859
# See apple/swift PR #608
@@ -110,6 +111,8 @@ def to_string(value):
110111
return "thumbeb"
111112
if value == ArchType.x86:
112113
return "i386"
114+
if value == ArchType.i686:
115+
return "i686"
113116
if value == ArchType.x86_64:
114117
return "x86_64"
115118
if value == ArchType.xcore:
@@ -202,6 +205,8 @@ def from_string(string):
202205
return ArchType.thumbeb
203206
if string == "x86":
204207
return ArchType.x86
208+
if string == "i686":
209+
return ArchType.i686
205210
if string == "x86_64":
206211
return ArchType.x86_64
207212
if string == "xcore":

0 commit comments

Comments
 (0)