Fix PR2120 by changing the replacement order to change compile_cxx
[oota-llvm.git] / test / lib / llvm.exp
index 70cae2ea4e3eb616d1bb847abbd4a6b929e4d4d0..78e3e836840fc12b3c3dcfba89fbfe907b2617a3 100644 (file)
@@ -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