Stick with C++ for everything.
This commit is contained in:
parent
93c25ca98b
commit
afcdd30c88
3 changed files with 6 additions and 3 deletions
|
|
@ -1067,7 +1067,7 @@ _wLLVMEngineBuilderCreate(PyObject *self, PyObject *args)
|
|||
return NULL;
|
||||
|
||||
char * outmsg = 0;
|
||||
|
||||
|
||||
LLVMExecutionEngineRef ee = LLVMEngineBuilderCreate(obj, &outmsg);
|
||||
|
||||
|
||||
|
|
@ -1953,7 +1953,8 @@ static PyMethodDef core_methods[] = {
|
|||
|
||||
|
||||
// Module main function, hairy because of py3k port
|
||||
|
||||
extern "C" {
|
||||
|
||||
#if (PY_MAJOR_VERSION >= 3)
|
||||
struct PyModuleDef module_def = {
|
||||
PyModuleDef_HEAD_INIT,
|
||||
|
|
@ -1987,3 +1988,5 @@ init_core(void)
|
|||
return module;
|
||||
#endif
|
||||
}
|
||||
|
||||
} // end extern C
|
||||
2
setup.py
2
setup.py
|
|
@ -95,7 +95,7 @@ def call_setup(llvm_config):
|
|||
|
||||
ext_core = Extension(
|
||||
'llvm._core',
|
||||
['llvm/_core.c', 'llvm/wrap.c', 'llvm/extra.cpp'],
|
||||
['llvm/_core.cpp', 'llvm/wrap.cpp', 'llvm/extra.cpp'],
|
||||
define_macros = [
|
||||
('__STDC_CONSTANT_MACROS', None),
|
||||
('__STDC_LIMIT_MACROS', None),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue