# 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'cygwin|mingw32|win32', mcjit_triple):
mcjit_triple += "-elf"
config.substitutions.append( ('%mcjit_triple', mcjit_triple) )