summaryrefslogtreecommitdiffstats
path: root/llvm/test/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-12 02:49:30 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-12 02:49:30 +0000
commit09f50008739b1504f69a8b72d2ab665e40f13dd4 (patch)
treea8ddff31158fc04bf852ebdc606dbe5f8f85dd2b /llvm/test/lib
parentc6251a7dfd9c6029af8fc61aa100909d75ee238c (diff)
downloadbcm5719-llvm-09f50008739b1504f69a8b72d2ab665e40f13dd4.tar.gz
bcm5719-llvm-09f50008739b1504f69a8b72d2ab665e40f13dd4.zip
Make the shlibext and llvmlibsdir variables accessible.
llvm-svn: 35939
Diffstat (limited to 'llvm/test/lib')
-rw-r--r--llvm/test/lib/llvm-dg.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/lib/llvm-dg.exp b/llvm/test/lib/llvm-dg.exp
index 4d04713bceb..6f83800888d 100644
--- a/llvm/test/lib/llvm-dg.exp
+++ b/llvm/test/lib/llvm-dg.exp
@@ -1,7 +1,7 @@
proc llvm-runtest { programs } {
global srcroot objroot srcdir objdir subdir target_triplet prcontext
global llvmgcc llvmgxx global llvmgcc_version llvmgccmajvers
- global gccpath gxxpath compile_c compile_cxx link
+ global gccpath gxxpath compile_c compile_cxx link shlibext llvmlibsdir
set timeout 60
@@ -60,6 +60,10 @@ proc llvm-runtest { programs } {
regsub -all {%compile_cxx} $new_runline "$compile_cxx" new_runline
#replace %link with C++ link command
regsub -all {%link} $new_runline "$link" new_runline
+ #replace %shlibext with shared library extension
+ regsub -all {%shlibext} $new_runline "$shlibext" new_runline
+ #replace %llvmlibsdir with configure library directory
+ regsub -all {%llvmlibsdir} $new_runline "$llvmlibsdir" new_runline
#replace %p with path to source,
regsub -all {%p} $new_runline [file join $srcdir $subdir] new_runline
#replace %s with filename
OpenPOWER on IntegriCloud