Skip to content

Commit 9165031

Browse files
committedDec 6, 2014
test/py2llvm: support 32-bit machines
1 parent 0e9c9b2 commit 9165031

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎test/py2llvm.py

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import inspect
44
from fractions import Fraction
55
from ctypes import CFUNCTYPE, c_int, c_int32, c_int64, c_double
6+
import struct
67

78
import llvmlite.binding as llvm
89

@@ -15,6 +16,9 @@
1516
llvm.initialize()
1617
llvm.initialize_native_target()
1718
llvm.initialize_native_asmprinter()
19+
if struct.calcsize("P") < 8:
20+
from ctypes import _dlopen, RTLD_GLOBAL
21+
_dlopen("libgcc_s.so", RTLD_GLOBAL)
1822

1923

2024
def _base_types(choice):

0 commit comments

Comments
 (0)