Skip to content

Bootstrap inventory script (self-host Phase A, #212)#238

Merged
PurHur merged 1 commit into
masterfrom
issue-212-bootstrap-inventory
May 19, 2026
Merged

Bootstrap inventory script (self-host Phase A, #212)#238
PurHur merged 1 commit into
masterfrom
issue-212-bootstrap-inventory

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 19, 2026

Summary

Completes Phase A of #212 (self-host bootstrap milestone):

  • Adds script/bootstrap-inventory.php to scan bin/vm.php path sources (lib/, ext/, src/, entry shims) and flag language constructs that block AOT bootstrap compilation (try/catch, yield, eval, class methods, etc.).
  • Generates docs/bootstrap-inventory.md with per-file blocker/warning tables and a catalog of Compiler.php CFG gap messages.
  • Wires --check into script/ci-local.sh (same pattern as capability-matrix.php).
  • Adds BootstrapInventoryTest and make bootstrap-inventory.

Test plan

  • php script/bootstrap-inventory.php --check
  • php vendor/bin/phpunit test/unit/BootstrapInventoryTest.php
  • php vendor/bin/phpunit test/unit/ (non-LLVM)

Remaining work (#212)

  • Phase B: bootstrap profile + compile.php -l on bootstrap file list
  • Phase C: native binary runs HelloWorld

Made with Cursor

Introduces script/bootstrap-inventory.php to list vm.php-path sources and flag
constructs the static compiler cannot lower yet, with a generated report and
CI --check gate.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 55bb44a into master May 19, 2026
1 check failed
@PurHur PurHur deleted the issue-212-bootstrap-inventory branch May 19, 2026 06:45
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