Skip to content

Commit 0825433

Browse files
committed
bah, apparently on travis you get a machine() value of i686
1 parent 7d7de0e commit 0825433

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,16 @@ def _supported_unix():
5454
extra_compile_args += ['-DVMPROF_UNIX=1']
5555
if platform.machine().startswith("arm"):
5656
libraries.append('unwind-arm')
57-
elif platform.machine().startswith("x86") or platform.machine().startswith("amd64"):
57+
elif (platform.machine().startswith("x86") or
58+
platform.machine().startswith("i686") or
59+
platform.machine().startswith("amd64")):
5860
if sys.maxsize == 2**63-1:
5961
libraries.append('unwind-x86_64')
6062
else:
6163
libraries.append('unwind-x86')
6264
else:
63-
raise NotImplementedError("unknown platform.machine(): %s" % platform.machine())
65+
raise NotImplementedError("unknown platform.machine(): %s" %
66+
platform.machine())
6467
extra_source_files += [
6568
'src/vmprof_mt.c',
6669
'src/vmprof_unix.c',

0 commit comments

Comments
 (0)