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

Tom Stellard thomas.stellard at amd.com
Fri Aug 9 20:40:26 PDT 2013


Author: tstellar
Date: Fri Aug  9 22:40:26 2013
New Revision: 188129

URL: http://llvm.org/viewvc/llvm-project?rev=188129&view=rev
Log:
configure: Fix build when clang is installed to a non-standard prefix

Modified:
    libclc/trunk/configure.py

Modified: libclc/trunk/configure.py
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/configure.py?rev=188129&r1=188128&r2=188129&view=diff
==============================================================================
--- libclc/trunk/configure.py (original)
+++ libclc/trunk/configure.py Fri Aug  9 22:40:26 2013
@@ -65,6 +65,7 @@ llvm_core_libs = llvm_config(['--libs',
                  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
 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",





More information about the cfe-commits mailing list