Skip to content

Commit

Permalink
check ppc64
Browse files Browse the repository at this point in the history
  • Loading branch information
flier committed Oct 27, 2021
1 parent 1828d01 commit dfb326a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@

machine = platform.machine().lower()
IS_X86 = machine in ['i386', 'i686', 'x86_64', 'amd64']
IS_X86_64 = machine in ['x86_64']
IS_X86_64 = IS_X86 and IS_64BITS
IS_ARM = machine.startswith('arm') or machine.startswith('aarch')
IS_ARM64 = IS_ARM and IS_64BITS
IS_PPC = machine.startswith('ppc')
IS_PPC64 = IS_PPC and IS_64BITS

IS_WINNT = os.name == "nt"
IS_POSIX = os.name == "posix"
Expand Down Expand Up @@ -198,7 +199,7 @@ def cpu_features():
'-mfpu=neon',
]

elif IS_PPC:
elif IS_PPC64:
srcs += ["src/highwayhash/highwayhash/hh_vsx.cc"]
cflags += ['-mvsx']

Expand Down

0 comments on commit dfb326a

Please sign in to comment.