Skip to content

Build graph, seed, Sema and c_import fixes: stale-input records, seed refresh, per-module extern classification, path-sensitive view invalidation, array constants (#1654 #1667 #1695 #1655 #1653) - #1705

Merged
ehartford merged 6 commits into
mainfrom
build-fixes
Sep 26, 2026

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Five independent fixes, each with its own commit and test:

No ownership/drop-scheduling change; batches with the paper-cuts battery discipline. Draft until the battery is posted.

Eric Hartford added 6 commits September 25, 2026 23:30
…the action's input (#1654)

build_cache_record fingerprinted inputs after the run, so an input edited
during a long action (stage1, the release link, a test lane) was recorded
with content the action never compiled and the stale output was fresh
forever — no later edit or `touch` re-ran it. The loop now snapshots every
cacheable target's input fingerprints at dispatch; the record compares and,
when an input moved, warns naming it, drops the target's state and returns,
so the next build re-runs the target.
…ation, not by whichever module declared the name last (#1695)

fn_decl_source_paths keeps one path per symbol, so once std.fs (imported
after the caller) declared `strerror`, ComptimeEval's call to its OWN
`extern fn strerror` was classified by lib/std/fs.w — exempt — and its
required `unsafe` block became "contains no unsafe operations". Every extern
declaration site is now indexed by (module, name); a module that declares
the extern itself is classified by that declaration. Pinned by a two-module
test in both import orders (unsafe accepted, bare call refused).
…ified (#1667)

`WITH=$PWD/src/main src/main build :seed` removed src/main before compiling
the fetch helper with it, so the helper's build failed (127) and no seed
remained. The old binary is now replaced only after the download's digest
matches the lock.
… call on a returning branch leaves the fall-through view live (§16.2b.7, #1655)

The poison a facade call puts on a view (facade_poison_foreign_views) was a
per-binding flag applied in source order, so `if info.is_none():
curl_global_cleanup(); return 1` poisoned the read of `info` that only the
other path reaches. The poison now travels in the branch snapshot beside
the field-move set: saved at entry, restored per branch, and at the join a
diverging branch contributes nothing (the #695 merge).
…d to its size — `[16]u8 { 0 }` is not With (#1653)

`type_from_translated_text` now parses `[N]T` into an array type instead of a
named type, an initializer that already carries its array type keeps it,
and the printer pads a short C initializer (`{ 0 }` → `[0 as u8; 16]`,
otherwise zero-filled) for both the array-typed and the typedef'd-array
(named `[16]u8`) cases. uuid.h's UUID_NULL — reached by `#include <pwd.h>`
on macOS — translates; pinned with typedef'd and plain array constants.
@ehartford

Copy link
Copy Markdown
Contributor Author

Seed-driven battery at 920dc90 (seed nightly-20260925-local-1, WITH=src/main), this host:

920dc901 buildfix /Users/eric/.local/with-staging/buildfix
buildfix build  rc=0
buildfix build :fixpoint rc=0
buildfix build :test rc=0
buildfix build :test-green rc=0
buildfix build :last-green rc=0
buildfix build :user-programs-safe rc=0
BATTERY_DONE

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