fixes
This commit is contained in:
parent
6d3253e4ea
commit
625858aa6f
2 changed files with 6 additions and 4 deletions
|
|
@ -70,7 +70,7 @@ namespace extra{
|
||||||
static
|
static
|
||||||
PyObject* callwrite(PyObject* self, PyObject* arg)
|
PyObject* callwrite(PyObject* self, PyObject* arg)
|
||||||
{
|
{
|
||||||
char meth[] = "method";
|
char meth[] = "write";
|
||||||
char fmt[] = "O";
|
char fmt[] = "O";
|
||||||
return PyObject_CallMethod(self, meth, fmt, arg);
|
return PyObject_CallMethod(self, meth, fmt, arg);
|
||||||
}
|
}
|
||||||
|
|
@ -965,7 +965,7 @@ PyObject* llvm_sys_getHostCPUFeatures(PyObject* Features)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LLVM_VERSION_MAJOR >= 3 && LLVM_VERSION_MINOR >= 3
|
||||||
static
|
static
|
||||||
PyObject* llvm_sys_isLittleEndianHost()
|
PyObject* llvm_sys_isLittleEndianHost()
|
||||||
{
|
{
|
||||||
|
|
@ -983,3 +983,4 @@ PyObject* llvm_sys_isBigEndianHost()
|
||||||
else
|
else
|
||||||
Py_RETURN_FALSE;
|
Py_RETURN_FALSE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
3
setup.py
3
setup.py
|
|
@ -36,6 +36,7 @@ def run_llvm_config(extra_args):
|
||||||
return stdout.decode().strip()
|
return stdout.decode().strip()
|
||||||
|
|
||||||
llvm_version = run_llvm_config(['--version'])
|
llvm_version = run_llvm_config(['--version'])
|
||||||
|
|
||||||
print('LLVM version = %r' % llvm_version)
|
print('LLVM version = %r' % llvm_version)
|
||||||
|
|
||||||
targets_built = run_llvm_config(['--targets-built'])
|
targets_built = run_llvm_config(['--targets-built'])
|
||||||
|
|
@ -62,7 +63,7 @@ def auto_intrinsic_gen(incdir):
|
||||||
print("Generate intrinsic IDs")
|
print("Generate intrinsic IDs")
|
||||||
from tools import intrgen
|
from tools import intrgen
|
||||||
|
|
||||||
if llvm_version >= (3, 3):
|
if llvm_version.startswith('3.3'):
|
||||||
path = "%s/llvm/IR/Intrinsics.gen" % incdir
|
path = "%s/llvm/IR/Intrinsics.gen" % incdir
|
||||||
else:
|
else:
|
||||||
path = "%s/llvm/Intrinsics.gen" % incdir
|
path = "%s/llvm/Intrinsics.gen" % incdir
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue