From 947bb30b1f0a632159a6636ee41f0d2a132e2633 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Tue, 13 Jan 2026 19:01:09 -0800 Subject: [PATCH] .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 --- .../HostUnitTestCompilerPlugin/HostUnitTestCompilerPlugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pytool/Plugin/HostUnitTestCompilerPlugin/HostUnitTestCompilerPlugin.py b/.pytool/Plugin/HostUnitTestCompilerPlugin/HostUnitTestCompilerPlugin.py index b06f59cc51..36aae4f473 100644 --- a/.pytool/Plugin/HostUnitTestCompilerPlugin/HostUnitTestCompilerPlugin.py +++ b/.pytool/Plugin/HostUnitTestCompilerPlugin/HostUnitTestCompilerPlugin.py @@ -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")