[Libclc-dev] [PATCH v2] Add missing HAVE_LLVM define to fix build with latest llvm

Jan Vesely via Libclc-dev libclc-dev at lists.llvm.org
Tue Sep 26 13:12:50 PDT 2017


On Tue, 2017-09-26 at 22:06 +0200, Pavel Ondračka via Libclc-dev wrote:
> Broken since r314111
> 
> V2: pointed out by Jan Vesely
>    - Use format() instead of % formating
> 
> Signed-off-by: Pavel Ondračka <pavel.ondracka at gmail.com>

Reviewed-by: Jan Vesely <jan.vesely at rutgers.edu>

do you need someone to push this?

Jan

> ---
>  configure.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/configure.py b/configure.py
> index cc4c84b..4e7a32c 100755
> --- a/configure.py
> +++ b/configure.py
> @@ -81,7 +81,8 @@ llvm_bindir = llvm_config(['--bindir'])
>  llvm_core_libs = llvm_config(['--libs', 'core', 'bitreader', 'bitwriter']) + ' ' + \
>                   llvm_system_libs + ' ' + \
>                   llvm_config(['--ldflags'])
> -llvm_cxxflags = llvm_config(['--cxxflags']) + ' -fno-exceptions -fno-rtti'
> +llvm_cxxflags = llvm_config(['--cxxflags']) + ' -fno-exceptions -fno-rtti ' + \
> +                '-DHAVE_LLVM=0x{:0=4}'.format(llvm_int_version)
>  llvm_libdir = llvm_config(['--libdir'])
>  
>  llvm_clang = os.path.join(llvm_bindir, 'clang')
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/libclc-dev/attachments/20170926/febe25a6/attachment.sig>


More information about the Libclc-dev mailing list