[Flang][Test] Add support to change the default target triple for tests
authorUsman Nadeem <mnadeem@quicinc.com>
Mon, 28 Nov 2022 23:51:15 +0000 (15:51 -0800)
committerUsman Nadeem <mnadeem@quicinc.com>
Tue, 29 Nov 2022 00:02:22 +0000 (16:02 -0800)
commit54dc764db7ff31057aa09451b63737a74da1cf65
treea1b343d1d24076b4430b235e58ebdfd31a37ad63
parentf6d90055fd88f9dcd1f8a7f0aca1a6018bad025c
[Flang][Test] Add support to change the default target triple for tests

In this patch I added support to change the default target triple used
by flang tests using the cmake variable: FLANG_TEST_TARGET_TRIPLE.

This functionality is implemented using the LLVM_TARGET_TRIPLE_ENV
variable, so that must be defined as well.

An example use:
`-DLLVM_TARGET_TRIPLE_ENV="LLVM_TARGET_TRIPLE_ENV" -DFLANG_TEST_TARGET_TRIPLE="aarch64-linux-gnu"`

Differential revision: https://reviews.llvm.org/D138530

Change-Id: I38e4a46a65109d415a9b72c8a0bf8a955e937280
flang/README.md
flang/test/CMakeLists.txt
flang/test/Unit/lit.cfg.py
flang/test/Unit/lit.site.cfg.py.in
flang/test/lit.cfg.py
flang/test/lit.site.cfg.py.in