Tell lit.cfg about more Windows triples.
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Fri, 20 Mar 2015 22:08:40 +0000 (22:08 +0000)
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Fri, 20 Mar 2015 22:08:40 +0000 (22:08 +0000)
For example, the host triple on my 64-bit PC is x86_64-pc-windows-msvc.

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

test/lit.cfg

index 173d51bdf805358c8c40fd0d4161137368380d26..059af8914e3eb953dfb25afb96302973d1e44755 100644 (file)
@@ -176,7 +176,7 @@ lli = 'lli'
 # we don't support COFF in MCJIT well enough for the tests, force ELF format on
 # Windows.  FIXME: the process target triple should be used here, but this is
 # difficult to obtain on Windows.
-if re.search(r'cygwin|mingw32|windows-gnu|win32', config.host_triple):
+if re.search(r'cygwin|mingw32|windows-gnu|windows-msvc|win32', config.host_triple):
   lli += ' -mtriple='+config.host_triple+'-elf'
 config.substitutions.append( ('%lli', lli ) )