Build with LLVM 2.5 (no longer works with 2.4) (Seth Warn, Anthony Desnos)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@60 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
58ceb85afb
commit
39b55e950c
2 changed files with 4 additions and 4 deletions
|
|
@ -305,9 +305,8 @@ LLVMModuleRef LLVMGetModuleFromAssembly(const char *asmtext, unsigned txtlen,
|
||||||
|
|
||||||
llvm::Module *modulep;
|
llvm::Module *modulep;
|
||||||
llvm::ParseError error;
|
llvm::ParseError error;
|
||||||
if (!(modulep = llvm::ParseAssemblyString(asmtext, NULL /*unused within!*/,
|
if (!(modulep = llvm::ParseAssemblyString(asmtext, NULL, error))) {
|
||||||
&error))) {
|
*out = strdup(error.getRawMessage().c_str());
|
||||||
*out = strdup(error.getMessage().c_str());
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
3
setup.py
3
setup.py
|
|
@ -32,7 +32,7 @@
|
||||||
import sys, os
|
import sys, os
|
||||||
from distutils.core import setup, Extension
|
from distutils.core import setup, Extension
|
||||||
|
|
||||||
LLVM_PY_VERSION = '0.5'
|
LLVM_PY_VERSION = '0.6'
|
||||||
|
|
||||||
|
|
||||||
def _run(cmd):
|
def _run(cmd):
|
||||||
|
|
@ -93,6 +93,7 @@ def call_setup(llvm_config):
|
||||||
'llvm._core',
|
'llvm._core',
|
||||||
['llvm/_core.c', 'llvm/wrap.c', 'llvm/extra.cpp'],
|
['llvm/_core.c', 'llvm/wrap.c', 'llvm/extra.cpp'],
|
||||||
define_macros = [
|
define_macros = [
|
||||||
|
('__STDC_CONSTANT_MACROS', None),
|
||||||
('__STDC_LIMIT_MACROS', None),
|
('__STDC_LIMIT_MACROS', None),
|
||||||
('_GNU_SOURCE', None)],
|
('_GNU_SOURCE', None)],
|
||||||
include_dirs = [incdir],
|
include_dirs = [incdir],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue