Skip to content

Commit 496134f

Browse files
committed
Fix powerpc targets
powerpc targets come in as ppc/ppc64/ppc64le and need to go out as powerpc/powerpc64/powerpc64le.
1 parent 791a55c commit 496134f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/target.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ def to_string(value):
8585
if value == ArchType.msp430:
8686
return "msp430"
8787
if value == ArchType.ppc:
88-
return "ppc"
88+
return "powerpc"
8989
if value == ArchType.ppc64:
90-
return "ppc64"
90+
return "powerpc64"
9191
if value == ArchType.ppc64le:
92-
return "ppc64le"
92+
return "powerpc64le"
9393
if value == ArchType.r600:
9494
return "r600"
9595
if value == ArchType.amdgcn:
@@ -176,11 +176,11 @@ def from_string(string):
176176
return ArchType.mips64el
177177
if string == "msp430":
178178
return ArchType.msp430
179-
if string == "ppc":
179+
if string == "ppc" or string == "powerpc":
180180
return ArchType.ppc
181-
if string == "ppc64":
181+
if string == "ppc64" or string == "powerpc64":
182182
return ArchType.ppc64
183-
if string == "ppc64le":
183+
if string == "ppc64le" or string == "powerpc64le":
184184
return ArchType.ppc64le
185185
if string == "r600":
186186
return ArchType.r600

0 commit comments

Comments
 (0)