[libclc] 28/291: Fix build against recent versions of Clang. Based on patch by Alastair Donaldson!

Andreas Beckmann anbe at moszumanska.debian.org
Tue Sep 8 10:53:29 UTC 2015


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

anbe pushed a commit to branch master
in repository libclc.

commit f07a899158d1f38b231e9a073a6ff0053b04016f
Author: Peter Collingbourne <peter at pcc.me.uk>
Date:   Wed Dec 5 07:39:02 2012 +0000

    Fix build against recent versions of Clang.  Based on patch by Alastair Donaldson!
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@169362 91177308-0d34-0410-b5e6-96231b3b80d8
---
 compile-test.sh | 2 +-
 configure.py    | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/compile-test.sh b/compile-test.sh
index 7461811..47c7f38 100755
--- a/compile-test.sh
+++ b/compile-test.sh
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-clang -ccc-host-triple nvptx--nvidiacl -Iptx-nvidiacl/include -Igeneric/include -Xclang -mlink-bitcode-file -Xclang nvptx--nvidiacl/lib/builtins.bc -include clc/clc.h -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 "$@"
+clang -target nvptx--nvidiacl -Iptx-nvidiacl/include -Igeneric/include -Xclang -mlink-bitcode-file -Xclang nvptx--nvidiacl/lib/builtins.bc -include clc/clc.h -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 "$@"
diff --git a/configure.py b/configure.py
index 546bbd3..9ae49b7 100755
--- a/configure.py
+++ b/configure.py
@@ -35,7 +35,8 @@ def llvm_config(args):
     sys.exit(1)
 
 llvm_bindir = llvm_config(['--bindir'])
-llvm_core_libs = llvm_config(['--ldflags', '--libs', 'core', 'bitreader', 'bitwriter'])
+llvm_core_libs = llvm_config(['--libs', 'core', 'bitreader', 'bitwriter']) + ' ' + \
+                 llvm_config(['--ldflags'])
 llvm_cxxflags = llvm_config(['--cxxflags']) + ' -fno-exceptions -fno-rtti'
 
 llvm_clang = os.path.join(llvm_bindir, 'clang')
@@ -97,7 +98,7 @@ for target in targets:
   install_files += [(incdir, incdir[len(srcdir)+1:]) for incdir in incdirs]
 
   # The rule for building a .bc file for the specified architecture using clang.
-  clang_bc_flags = "-ccc-host-triple %s -I`dirname $in` %s " \
+  clang_bc_flags = "-target %s -I`dirname $in` %s " \
                    "-Dcl_clang_storage_class_specifiers " \
                    "-Dcl_khr_fp64 " \
                    "-emit-llvm" % (target, clang_cl_includes)

-- 
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