aboutsummaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-10 06:45:35 +0000
committerChris Lattner <sabre@nondot.org>2008-03-10 06:45:35 +0000
commitaadbda85a001d73c720c606b129cccb7a2425887 (patch)
treec0a1303194f7ea23cc3d34402ad5cb90164fc519 /test/lib
parent3feb0170a8d65984ce5c01a85e7dfd4005f8bb35 (diff)
Fix PR2120 by changing the replacement order to change compile_cxx
before compile_c. Patch by Joachim Durchholz! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/llvm.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp
index 70cae2ea4e..78e3e83684 100644
--- a/test/lib/llvm.exp
+++ b/test/lib/llvm.exp
@@ -56,10 +56,10 @@ proc substitute { line test tmpFile } {
regsub -all {%llvmgcc} $new_line "$llvmgcc -emit-llvm" new_line
#replace %llvmgxx with actual path to llvmg++
regsub -all {%llvmgxx} $new_line "$llvmgxx -emit-llvm" new_line
- #replace %compile_c with C compilation command
- regsub -all {%compile_c} $new_line "$compile_c" new_line
#replace %compile_cxx with C++ compilation command
regsub -all {%compile_cxx} $new_line "$compile_cxx" new_line
+ #replace %compile_c with C compilation command
+ regsub -all {%compile_c} $new_line "$compile_c" new_line
#replace %link with C++ link command
regsub -all {%link} $new_line "$link" new_line
#replace %shlibext with shared library extension