OSDN Git Service

Fix the comparison of language names to accept any characters by using
authorReid Spencer <rspencer@reidspencer.com>
Sun, 22 Apr 2007 14:14:11 +0000 (14:14 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 22 Apr 2007 14:14:11 +0000 (14:14 +0000)
"string first" instead of "regexp match". This helps C++ tests get executed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36339 91177308-0d34-0410-b5e6-96231b3b80d8

test/lib/llvm.exp

index 3ed44d7..e724506 100644 (file)
@@ -207,7 +207,7 @@ proc llvm_gcc_supports { lang } {
     fortran { set file fcc1 }
     default { return 0 }
   }
-  if { [ regexp $lang $llvmgcc_langs match ] } {
+  if { [ string first "$lang" "$llvmgcc_langs" ] >= 0 } {
     # FIXME: Knowing it is configured is not enough. We should do two more
     # checks here. First, we need to run llvm-gcc -print-prog-name=$file to get
     # the path to the compiler. If we don't get a path, the language isn't