Skip to content

Self-host M5: unify helloworld emit-TU sidecars (#2666) - #2684

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-2600-bin-compile-m3-sidecar
May 27, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/issue-2600-bin-compile-m3-sidecar

Conversation

@PurHur

@PurHur PurHur commented May 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Register compiler_unit_probe_compile.php and compile_driver.php link-time AOT sidecars unconditionally in the compile_smoke_m3_emit emit-log branch (same branch used by helloworld_m3_emit_native_entry.php).
  • build/selfhost-helloworld-emit now native-emits the compiler unit probe (compile OK) without requiring the dedicated unit-probe emit binary or PHP_COMPILER_M3_COMPILER_UNIT_PROBE_EMIT at link time.
  • Regenerate docs/bootstrap-inventory.md so php script/bootstrap-inventory.php --check is green.

Blocker (follow-up #2600)

bin/compile.php still returns parseAndCompile returned null via the unified helper — host full AOT fails on vendor Expr_Closure; real Compiler spine pre-lower in the emit TU segfaults LLVM 9 (#2540).

Test plan

Made with Cursor

Register compiler unit probe and compile_driver link-time sidecars in the
compile_smoke_m3_emit branch so build/selfhost-helloworld-emit can native-emit
inventory-scale probe sources without a dedicated emit entry. Regenerate
bootstrap-inventory.md for the --check gate.

bin/compile.php native emit remains blocked on real Compiler spine lowering
(#2600); unit probe via unified helper is green in Docker.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 510a35d into master May 27, 2026
@PurHur
PurHur deleted the agent/issue-2600-bin-compile-m3-sidecar branch June 4, 2026 03:36
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