[Libclc-dev] [PATCH 1/4] configure: provide llvm_as helper variable

Jan Vesely via Libclc-dev libclc-dev at lists.llvm.org
Tue Nov 13 12:16:11 PST 2018


Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
This series removes all the OVERRIDES entries making
it easier to add a new build system without support for overrides.
There is still a hierarchy of source directories and more specific
implementations are preferred.
 configure.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.py b/configure.py
index 8c021b9..2a5d3a7 100755
--- a/configure.py
+++ b/configure.py
@@ -86,6 +86,7 @@ llvm_cxxflags = llvm_config(['--cxxflags']) + ' -fno-exceptions -fno-rtti ' + \
 llvm_libdir = llvm_config(['--libdir'])
 
 llvm_clang = os.path.join(llvm_bindir, 'clang')
+llvm_as = os.path.join(llvm_bindir, 'llvm-as')
 llvm_link = os.path.join(llvm_bindir, 'llvm-link')
 llvm_opt = os.path.join(llvm_bindir, 'opt')
 
@@ -133,8 +134,7 @@ if not targets:
 
 b = metabuild.from_name(options.g)
 
-b.rule("LLVM_AS", "%s -o $out $in" % os.path.join(llvm_bindir, "llvm-as"),
-       'LLVM-AS $out')
+b.rule("LLVM_AS", "%s -o $out $in" % llvm_as, 'LLVM-AS $out')
 b.rule("LLVM_LINK", command = llvm_link + " -o $out $in",
        description = 'LLVM-LINK $out')
 b.rule("OPT", command = llvm_opt + " -O3 -o $out $in",
-- 
2.19.1



More information about the Libclc-dev mailing list