Fix the comparison of language names to accept any characters by using

"string first" instead of "regexp match". This helps C++ tests get executed.

llvm-svn: 36339
This commit is contained in:
Reid Spencer 2007-04-22 14:14:11 +00:00
parent 8996dce6ec
commit d1931feba5
1 changed files with 1 additions and 1 deletions

View 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