test/ExecutionEngine/MCJIT: MCJIT should work also on mingw.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 3 Oct 2012 01:42:37 +0000 (01:42 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 3 Oct 2012 01:42:37 +0000 (01:42 +0000)
FIXME: Also cygwin?

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

test/ExecutionEngine/MCJIT/lit.local.cfg
test/lit.cfg

index 985496ffde0d8b3b07f9e2821ffb9309f4ce6668..420d9551bda5915f48311d40a4ec0e780953b20f 100644 (file)
@@ -16,5 +16,5 @@ else:
 if root.host_arch not in ['x86', 'x86_64', 'ARM', 'Mips']:
     config.unsupported = True
 
-if root.host_os in ['Cygwin', 'MingW', 'Darwin']:
+if root.host_os in ['Cygwin', 'Darwin']:
     config.unsupported = True
index 348ac8f622c7b8605ebca6990f9991aee8473273..d81563373d07a9b9f7cc9f4b0f076947f8f73501 100644 (file)
@@ -142,7 +142,7 @@ if config.test_exec_root is None:
 # Provide a target triple for mcjit tests
 mcjit_triple = config.target_triple
 # Force ELF format on Windows
-if 'win32' in mcjit_triple.lower():
+if re.search(r'mingw32|win32', mcjit_triple):
   mcjit_triple += "-elf"
 config.substitutions.append( ('%mcjit_triple', mcjit_triple) )