summaryrefslogtreecommitdiff
path: root/libclc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-11-27 16:01:01 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-11-27 16:01:01 +0000
commit955df902ea8579930f58c133d19a28f9e50df669 (patch)
tree2bb8e29b204cdc8615dbc4fa5b5d6370d1013d19 /libclc
parent6dcf25a0a98f052d4a1b29bba5c568f7c2829ef6 (diff)
configure: provide llvm_as helper variable
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Aaron Watry
Diffstat (limited to 'libclc')
-rwxr-xr-xlibclc/configure.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libclc/configure.py b/libclc/configure.py
index 8c021b93fd4..2a5d3a77846 100755
--- a/libclc/configure.py
+++ b/libclc/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",