diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2012-10-02 18:38:34 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2012-10-02 18:38:34 +0000 |
commit | 7bbd6e366b39157445cc921024a987e61ea68c00 (patch) | |
tree | 102f2dfc142c368fdcd9c077da5bdaeed0e200a9 /test/lit.cfg | |
parent | a346f462716b4eb32d27ffe20fc8696473f225f6 (diff) | |
download | external_llvm-7bbd6e366b39157445cc921024a987e61ea68c00.zip external_llvm-7bbd6e366b39157445cc921024a987e61ea68c00.tar.gz external_llvm-7bbd6e366b39157445cc921024a987e61ea68c00.tar.bz2 |
Support for generating ELF objects on Windows.
This adds 'elf' as a recognized target triple environment value and overrides the default generated object format on Windows platforms if that value is present. This patch also enables MCJIT tests on Windows using the new environment value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165030 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index b7c5f3e..348ac8f 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -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 |