[LIT] Add win32 PLATFORM env var to test config
authorMuhammad Omair Javaid <omair.javaid@linaro.org>
Thu, 4 Nov 2021 12:37:42 +0000 (17:37 +0500)
committerMuhammad Omair Javaid <omair.javaid@linaro.org>
Thu, 4 Nov 2021 12:42:43 +0000 (17:42 +0500)
commitcbd215dfe51df47e020c676a32c2672c573641a8
tree3f26099acdcc67d253aa4bde7495b229a7702a00
parentb4992dbb21ff9159285ae0aec73f3d760344b0e5
[LIT] Add win32 PLATFORM env var to test config

LIT skips various system environment variables while building test
config. It turns out that we require PLATFORM environment variable for
detection of x86 vs Arm windows platform.

This patch adds system environment variable PLATFORM into LIT test
config for detection of win32 Arm platform.

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D113165
lldb/test/Shell/helper/build.py
llvm/utils/lit/lit/llvm/config.py