llvm/lib/Support/Windows
NAKAMURA Takumi b903fddc56 [CMake] Introduce LLVM_TARGET_TRIPLE_ENV as an option to override LLVM_DEFAULT_TARGET_TRIPLE at runtime.
No behavior is changed if LLVM_TARGET_TRIPLE_ENV is blank or undefined.

If LLVM_TARGET_TRIPLE_ENV is "TEST_TARGET_TRIPLE" and $TEST_TARGET_TRIPLE is not blank,
llvm::sys::getDefaultTargetTriple() returns $TEST_TARGET_TRIPLE.
Lit resets config.target_triple and config.environment[LLVM_TARGET_TRIPLE_ENV] to change the default target.

Without changing LLVM_DEFAULT_TARGET_TRIPLE nor rebuilding, lit can be run;

  TEST_TARGET_TRIPLE=i686-pc-win32 bin/llvm-lit -sv path/to/test/
  TEST_TARGET_TRIPLE=i686-pc-win32 ninja check-clang-tools

Differential Revision: https://reviews.llvm.org/D33662

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305632 91177308-0d34-0410-b5e6-96231b3b80d8
2017-06-17 03:19:08 +00:00
..
COM.inc Windows/COM.inc: Fix emacs mode in the first line. 2015-08-05 06:11:08 +00:00
DynamicLibrary.inc Close DynamicLibraries in reverse order they were opened. 2017-06-05 16:26:58 +00:00
explicit_symbols.inc [Cygming] Seek also chkstk_ms, or JIT fails with DLL builds. It is fixup for r227519. 2015-01-30 13:01:19 +00:00
Host.inc [CMake] Introduce LLVM_TARGET_TRIPLE_ENV as an option to override LLVM_DEFAULT_TARGET_TRIPLE at runtime. 2017-06-17 03:19:08 +00:00
Memory.inc Add Windows error code and tidy formatting for system errors. 2015-11-23 17:34:20 +00:00
Mutex.inc Remove more name space pollution from .inc files 2017-03-31 14:26:44 +00:00
Path.inc [Support] Fill the file_status struct with link count. 2017-03-20 23:55:20 +00:00
Process.inc Do not pollute the namespace in a header file. 2017-03-31 13:48:21 +00:00
Program.inc Remove more name space pollution from .inc files 2017-03-31 14:26:44 +00:00
RWMutex.inc Remove more name space pollution from .inc files 2017-03-31 14:26:44 +00:00
Signals.inc Remove name space pollution from Signals.cpp 2017-03-31 14:58:52 +00:00
Threading.inc Fix C2712 build error on Windows 2017-03-07 20:09:46 +00:00
ThreadLocal.inc Remove more name space pollution from .inc files 2017-03-31 14:26:44 +00:00
Watchdog.inc Add a new watchdog timer interface. The interface does not permit handling timeouts, so 2013-03-26 01:27:52 +00:00
WindowsSupport.h Fix one place where I missed a commented requirement for a particular 2017-06-06 12:11:24 +00:00