Support for generating ELF objects on Windows.
[oota-llvm.git] / test / lit.cfg
index b7c5f3ef38c6af1ff705f6a1d60254019048b377..348ac8f622c7b8605ebca6990f9991aee8473273 100644 (file)
@@ -139,6 +139,13 @@ 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():
+  mcjit_triple += "-elf"
+config.substitutions.append( ('%mcjit_triple', mcjit_triple) )
+
 # When running under valgrind, we mangle '-vg' or '-vg_leak' onto the end of the
 # triple so we can check it with XFAIL and XTARGET.
 config.target_triple += lit.valgrindTriple