diff options
author | Edwin Török <edwintorok@gmail.com> | 2008-10-21 17:21:32 +0000 |
---|---|---|
committer | Edwin Török <edwintorok@gmail.com> | 2008-10-21 17:21:32 +0000 |
commit | 25ed2c5d5ec6f97e92f831b6dcb728a2f4151341 (patch) | |
tree | 469cedc9a430f7371cf284841dde7808deff0aed /test/lib/llvm.exp | |
parent | 8eab1c8c9852bb78231148ac4fb2d93b975f4ccd (diff) | |
download | external_llvm-25ed2c5d5ec6f97e92f831b6dcb728a2f4151341.zip external_llvm-25ed2c5d5ec6f97e92f831b6dcb728a2f4151341.tar.gz external_llvm-25ed2c5d5ec6f97e92f831b6dcb728a2f4151341.tar.bz2 |
Fix make check on Solaris 10/x86: the default grep is not GNU grep, same for as.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lib/llvm.exp')
-rw-r--r-- | test/lib/llvm.exp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp index a844152..b5d5cff 100644 --- a/test/lib/llvm.exp +++ b/test/lib/llvm.exp @@ -49,7 +49,7 @@ proc substitute { line test tmpFile } { global srcroot objroot srcdir objdir subdir target_triplet prcontext global llvmgcc llvmgxx llvmgcc_version llvmgccmajvers ocamlc global gccpath gxxpath compile_c compile_cxx link shlibext llvmlibsdir - global valgrind + global valgrind grep gas set path [file join $srcdir $subdir] # Substitute all Tcl variables. @@ -84,6 +84,11 @@ proc substitute { line test tmpFile } { #replace _#MARKER#_ with % regsub -all {_#MARKER#_} $new_line % new_line + #replace grep with GNU grep + regsub -all { grep } $new_line " $grep " new_line + #replace as with GNU as + regsub -all {\| as } $new_line "| $gas " new_line + #valgind related stuff # regsub -all {bugpoint } $new_line "$valgrind bugpoint " new_line regsub -all {llc } $new_line "$valgrind llc " new_line |