summaryrefslogtreecommitdiffstats
path: root/llvm/test/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-19 20:27:23 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-19 20:27:23 +0000
commit05799db963def5a5ad882fd3388c58a5e1648159 (patch)
tree3585dc63c11442f8bf27892825a38a400d267361 /llvm/test/lib
parent67a3bb7af7af6c3035722a9146c5aa921af01f9b (diff)
downloadbcm5719-llvm-05799db963def5a5ad882fd3388c58a5e1648159.tar.gz
bcm5719-llvm-05799db963def5a5ad882fd3388c58a5e1648159.zip
More makefile changes to allow dejagnu tests to pass when system tools default to a different target from the llvm configuration (e.g. 64-bit gcc and 32-bit llvm).
llvm-svn: 67334
Diffstat (limited to 'llvm/test/lib')
-rw-r--r--llvm/test/lib/llvm.exp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/lib/llvm.exp b/llvm/test/lib/llvm.exp
index 254995bc4ae..2ef7e6fefbd 100644
--- a/llvm/test/lib/llvm.exp
+++ b/llvm/test/lib/llvm.exp
@@ -48,8 +48,8 @@ proc execOneLine { test PRS outcome lineno line } {
proc substitute { line test tmpFile } {
global srcroot objroot srcdir objdir subdir target_triplet prcontext
global llvmgcc llvmgxx llvmgcc_version llvmgccmajvers ocamlc
- global gccpath gxxpath compile_c compile_cxx link shlibext llvmlibsdir llvmdsymutil
- global valgrind grep gas
+ global gccpath gxxpath compile_c compile_cxx link shlibext llvmlibsdir
+ global llvmdsymutil valgrind grep gas bugpoint_topts
set path [file join $srcdir $subdir]
# Substitute all Tcl variables.
@@ -77,6 +77,8 @@ proc substitute { line test tmpFile } {
regsub -all {%llvmdsymutil} $new_line "$llvmdsymutil" new_line
#replace %llvmlibsdir with configure library directory
regsub -all {%llvmlibsdir} $new_line "$llvmlibsdir" new_line
+ #replace %bugpoint_tops with actual bugpoint target options
+ regsub -all {%bugpoint_tops} $new_line "$bugpoint_topts" new_line
#replace %p with path to source,
regsub -all {%p} $new_line [file join $srcdir $subdir] new_line
#replace %s with filename
OpenPOWER on IntegriCloud