[libclc] 24/92: Add missing HAVE_LLVM define to fix build with latest llvm
Andreas Boll
aboll-guest at moszumanska.debian.org
Mon Nov 6 15:11:57 UTC 2017
This is an automated email from the git hooks/post-receive script.
aboll-guest pushed a commit to branch master
in repository libclc.
commit 81f74b2cee5f8265db45bf946d2c91ace41d9e22
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date: Tue Sep 26 23:15:54 2017 +0000
Add missing HAVE_LLVM define to fix build with latest llvm
Broken since r314111
V2: pointed out by Jan Vesely
- Use format() instead of % formating
Patch-by: Pavel Ondračka <pavel.ondracka at gmail.com>
Signed-off-by: Pavel Ondračka <pavel.ondracka at gmail.com>
Reviewed-by: Jan Vesely <jan.vesely at rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@314261 91177308-0d34-0410-b5e6-96231b3b80d8
---
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')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git
More information about the Pkg-opencl-commits
mailing list