summaryrefslogtreecommitdiff
path: root/test/lib/llvm.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/llvm.exp')
-rw-r--r--test/lib/llvm.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp
index 9a85a1c87a..921bcb5ddd 100644
--- a/test/lib/llvm.exp
+++ b/test/lib/llvm.exp
@@ -43,7 +43,7 @@ proc execOneLine { test PRS outcome lineno line } {
# cases.
proc substitute { line test tmpFile } {
global srcroot objroot srcdir objdir subdir target_triplet prcontext
- global llvmgcc llvmgxx llvmgcc_version llvmgccmajvers
+ global llvmgcc llvmgxx llvmgcc_version llvmgccmajvers ocamlc
global gccpath gxxpath compile_c compile_cxx link shlibext llvmlibsdir
set path [file join $srcdir $subdir]
@@ -64,6 +64,8 @@ proc substitute { line test tmpFile } {
regsub -all {%link} $new_line "$link" new_line
#replace %shlibext with shared library extension
regsub -all {%shlibext} $new_line "$shlibext" new_line
+ #replace %ocamlc with ocaml compiler command
+ regsub -all {%ocamlc} $new_line "$ocamlc" new_line
#replace %llvmlibsdir with configure library directory
regsub -all {%llvmlibsdir} $new_line "$llvmlibsdir" new_line
#replace %p with path to source,