[pocl] 10/17: restrict libstdc++-7-dev.patch to clang <= 3.8

Andreas Beckmann anbe at moszumanska.debian.org
Sun Nov 26 03:19:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository pocl.

commit 78c5c9b02ca1898359115f681aa56de9776304b0
Author: Andreas Beckmann <anbe at debian.org>
Date:   Thu Nov 23 04:40:59 2017 +0100

    restrict libstdc++-7-dev.patch to clang <= 3.8
---
 debian/patches/libstdc++-7-dev.patch | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/patches/libstdc++-7-dev.patch b/debian/patches/libstdc++-7-dev.patch
index 66a77c6..53082af 100644
--- a/debian/patches/libstdc++-7-dev.patch
+++ b/debian/patches/libstdc++-7-dev.patch
@@ -3,13 +3,15 @@ Description: work around FTBFS with g++-7 as default g++
 
 --- a/lib/kernel/vecmathlib/floattypes.h
 +++ b/lib/kernel/vecmathlib/floattypes.h
-@@ -3,6 +3,10 @@
+@@ -3,6 +3,12 @@
  #ifndef FLOATTYPES_H
  #define FLOATTYPES_H
  
 +// HACK for using clang-3.8 with libstdc++-7-dev
++#if defined(__clang__) && ((__clang_major__ * 100 + __clang_minor__) < 309)
 +#include <bits/c++config.h>
 +#undef _GLIBCXX_USE_FLOAT128
++#endif
 +
  #include <cassert>
  #include <cstdlib>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/pocl.git



More information about the Pkg-opencl-commits mailing list