.pytool/Plugin/HostUnitTestCompilerPlugin: Allow non VS20xx IA32

Allow IA32 builds of host-based unit tests for environments that
support IA32. The VS20xx tool chains do not support IA32 due to
limitations in the code coverage tool OpenCppCoverage. All other
tool chains should be allowed to use IA32.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
Michael D Kinney 2026-01-13 19:01:09 -08:00 committed by mergify[bot]
parent 8ca4de0982
commit 947bb30b1f

View file

@ -62,6 +62,10 @@ class HostUnitTestCompilerPlugin(ICiBuildPlugin):
## change once IA32 issues resolved host.append("IA32")
if GetHostInfo().bit == '64':
host.append("X64")
# VS20xx IA32 builds have known issues using OpenCppCoverage
# Only enable IA32 builds on 64bit hosts when using clang or gcc
if not environment.GetValue("TOOL_CHAIN_TAG").startswith('VS'):
host.append("IA32")
elif GetHostInfo().arch == 'ARM':
if GetHostInfo().bit == '64':
host.append("AARCH64")