Skip to content

Commit c35e8be

Browse files
committed
ci: exclude import_std=True from freestanding builds (incompatible with -ffreestanding PCH)
1 parent ae5cfad commit c35e8be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/generate-job-matrix.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ def _guarantee_api_coverage(
172172
"""Guarantee ≥1 import_std and ≥1 no_crtp configuration per supporting toolchain."""
173173
no_crtp_extra = {} if contracts is None else {"contracts": contracts}
174174
for tc in toolchains_iter:
175-
if tc.feature_support.import_std:
175+
# import_std is incompatible with freestanding: the pre-built std.pcm
176+
# is compiled without -ffreestanding and cannot be reused.
177+
if tc.feature_support.import_std and not freestanding:
176178
collector.sample_combinations(
177179
rgen=rgen,
178180
min_samples=1,
@@ -319,6 +321,7 @@ def main():
319321
toolchain=freestanding_toolchains,
320322
contracts="none",
321323
freestanding=True,
324+
import_std=False,
322325
std=23,
323326
)
324327
# Guarantee import_std and no_crtp API coverage per supporting toolchain.

0 commit comments

Comments
 (0)