[llvm-commits] [llvm] r48132 - /llvm/trunk/test/lib/llvm.exp

Chris Lattner sabre at nondot.org
Sun Mar 9 23:45:36 PDT 2008


Author: lattner
Date: Mon Mar 10 01:45:35 2008
New Revision: 48132

URL: http://llvm.org/viewvc/llvm-project?rev=48132&view=rev
Log:
Fix PR2120 by changing the replacement order to change compile_cxx 
before compile_c.  Patch by Joachim Durchholz!

Modified:
    llvm/trunk/test/lib/llvm.exp

Modified: llvm/trunk/test/lib/llvm.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lib/llvm.exp?rev=48132&r1=48131&r2=48132&view=diff

==============================================================================
--- llvm/trunk/test/lib/llvm.exp (original)
+++ llvm/trunk/test/lib/llvm.exp Mon Mar 10 01:45:35 2008
@@ -56,10 +56,10 @@
   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





More information about the llvm-commits mailing list