[libclc] 76/291: configure: Fix build when clang is installed to a non-standard prefix

Andreas Beckmann anbe at moszumanska.debian.org
Tue Sep 8 10:53:35 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 c2bb4658f0ffaa9feab80361668cdd40e27ecdcb
Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Sat Aug 10 03:40:26 2013 +0000

    configure: Fix build when clang is installed to a non-standard prefix
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@188129 91177308-0d34-0410-b5e6-96231b3b80d8
---
 configure.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.py b/configure.py
index 79cc4df..b385fb8 100755
--- a/configure.py
+++ b/configure.py
@@ -65,6 +65,7 @@ llvm_core_libs = llvm_config(['--libs', 'core', 'bitreader', 'bitwriter']) + ' '
                  llvm_config(['--ldflags'])
 llvm_cxxflags = llvm_config(['--cxxflags']) + ' -fno-exceptions -fno-rtti'
 
+llvm_clang_cxx = os.path.join(llvm_bindir, 'clang++')
 llvm_clang = os.path.join(llvm_bindir, 'clang')
 llvm_link = os.path.join(llvm_bindir, 'llvm-link')
 llvm_opt = os.path.join(llvm_bindir, 'opt')
@@ -95,8 +96,8 @@ b.rule("LLVM_LINK", command = llvm_link + " -o $out $in",
 b.rule("OPT", command = llvm_opt + " -O3 -o $out $in",
        description = 'OPT $out')
 
-c_compiler_rule(b, "LLVM_TOOL_CXX", 'LLVM-CXX', 'clang++', llvm_cxxflags)
-b.rule("LLVM_TOOL_LINK", "clang++ -o $out $in %s" % llvm_core_libs, 'LINK $out')
+c_compiler_rule(b, "LLVM_TOOL_CXX", 'LLVM-CXX', llvm_clang_cxx, llvm_cxxflags)
+b.rule("LLVM_TOOL_LINK", llvm_clang_cxx + " -o $out $in %s" % llvm_core_libs, 'LINK $out')
 
 prepare_builtins = os.path.join('utils', 'prepare-builtins')
 b.build(os.path.join('utils', 'prepare-builtins.o'), "LLVM_TOOL_CXX",

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