forked from M-Labs/artiq
1
0
Fork 0

test/py2llvm: support 32-bit machines

This commit is contained in:
Sebastien Bourdeauducq 2014-12-06 14:52:33 +08:00
parent 0e9c9b25b0
commit 9165031fd5
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import ast
import inspect
from fractions import Fraction
from ctypes import CFUNCTYPE, c_int, c_int32, c_int64, c_double
import struct
import llvmlite.binding as llvm
@ -15,6 +16,9 @@ from artiq.py2llvm.module import Module
llvm.initialize()
llvm.initialize_native_target()
llvm.initialize_native_asmprinter()
if struct.calcsize("P") < 8:
from ctypes import _dlopen, RTLD_GLOBAL
_dlopen("libgcc_s.so", RTLD_GLOBAL)
def _base_types(choice):