Skip to content

Fix 1985 - #1998

Merged
oberstet merged 2 commits into
crossbario:masterfrom
oberstet:fix_1985
Oct 18, 2026
Merged

oberstet merged 2 commits into
crossbario:masterfrom
oberstet:fix_1985

Conversation

@oberstet

Copy link
Copy Markdown
Contributor

fixes #1985

…--parallel)

hatch_build.py built flatc with `cmake --build . --target flatc` and no
--parallel, so on one core: about 4 minutes on every wheel build,
editable install and `just test-*` run. It now passes
`--parallel <os.cpu_count()>`. An explicit CMAKE_BUILD_PARALLEL_LEVEL in
the environment still wins: then --parallel is given without a count,
and cmake reads the variable. The build log names the job count, so a
CI log shows which was used. Same change as zlmdb 9e74456 (crossbario#174).

This is the parallel-build point of crossbario#1985 only. The input stamp, skipping
an unchanged flatc, and AUTOBAHN_FORCE_FLATC_BUILD stay open.

Measured on asgard1 (same configure arguments, out-of-tree build of
deps/flatbuffers, flatc 25.12.19): serial 237 s, 16 jobs 25 s. A full
`uv build --wheel` (cpy314, CMAKE_BUILD_PARALLEL_LEVEL=16) took 34 s and
the wheel contains autobahn/_flatc/bin/flatc. ruff check and
just check-typing cpy314 pass.

No red/green pair: build speed only, no behaviour change to test.

Expected CI result: GREEN - all jobs, with the flatc step of the wheel
jobs faster; every wheel still bundles flatc.

Note: This work was completed with AI assistance (Claude Code).
@oberstet
oberstet merged commit 3eefbfe into crossbario:master Oct 18, 2026
53 checks passed
@oberstet
oberstet deleted the fix_1985 branch October 18, 2026 17:22
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.

Build the bundled flatc only when its inputs changed, and build it in parallel

1 participant