Update .github/scripts/strategy-matrix/generate.py

Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
This commit is contained in:
Jingchen
2026-06-11 15:30:33 +01:00
committed by GitHub
parent 436b18ff82
commit 39b208f902

View File

@@ -279,12 +279,7 @@ def expand_platform_matrix(
platform_name, arch = pf.platform.split("/")
is_windows = platform_name == "windows"
toolsets = None
if pf.toolsets:
toolsets = [t for t in pf.toolsets if not t.exclude]
if not toolsets:
toolsets = [Toolset(name="", generator="", compiler_version="")]
toolsets = [t for t in pf.toolsets if not t.exclude] if pf.toolsets else [Toolset(name="", generator="")]
entries: list[MatrixEntry] = []
for toolset, cfg in itertools.product(toolsets, pf.configs):