Skip to content

ci: build morph_tests with /bigobj under MSVC to stop recurring C1128 failures - #81

Merged
Yaraslaut merged 1 commit into
masterfrom
ci/bigobj-morph-tests
Aug 12, 2026
Merged

ci: build morph_tests with /bigobj under MSVC to stop recurring C1128 failures#81
Yaraslaut merged 1 commit into
masterfrom
ci/bigobj-morph-tests

Conversation

@Yaraslaut

Copy link
Copy Markdown
Member

Problem

Three separate open PRs (issue-cluster-d-util, issue-cluster-i-forms-controller, issue-cluster-k-forms-qml) each independently hit MSVC's C1128 ("number of sections exceeded object file format limit") on tests/test_quantity_forms.cpp under the cl-debug preset — every one after adding only a small amount of new schema/rule template instantiation to that file. Each PR needed its own file-scoped /bigobj workaround to get green.

This is a systemic risk, not a one-off: the file is evidently sitting right at MSVC's Debug-build section-count edge, so any future branch that so much as adds one more test case there will hit the same wall.

Fix

Apply /bigobj to the whole morph_tests target (MSVC-only, via $<CXX_COMPILER_ID:MSVC>), rather than chasing individual files as they tip over. Harmless on Release and on non-MSVC compilers.

Verification

  • Configured and built the full project under cl-debug locally: test_quantity_forms.cpp.obj and all other test objects compile and link cleanly.
  • Ran the full local suite: 868/868 tests passed.

🤖 Generated with Claude Code

… failures

Three separate branches independently hit MSVC's C1128 ("number of
sections exceeded object file format limit") on test_quantity_forms.cpp
under the cl-debug preset, each after adding only a small amount of new
schema/rule template instantiation. Rather than chase this file by file
as it keeps recurring, /bigobj now applies to the whole morph_tests
target: harmless on Release and on other compilers.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Yaraslaut
Yaraslaut merged commit 4d9c0bd into master Aug 12, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant