Skip to content

Self-host: compile src/cli_driver.php without static initializer - #2720

Merged
PurHur merged 1 commit into
masterfrom
agent/selfhost-cli-driver-emit
May 27, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/selfhost-cli-driver-emit

Conversation

@PurHur

@PurHur PurHur commented May 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Fix self-host native emit of src/cli_driver.php by removing function-local static initializer usage in the minimal autoloader cache.
  • Regenerate docs/bootstrap-inventory.md so php script/bootstrap-inventory.php --check is green.

Why

make bootstrap-selfhost-cli-driver-emit was failing with parseAndCompile returned null because the compiler does not support function-local static initializers on the self-host compile path.

Test plan

  • ./script/docker-exec.sh -- bash -lc 'make bootstrap-selfhost-cli-driver-emit'
  • ./script/docker-exec.sh -- bash -lc 'make bootstrap-inventory-check'

Closes #2699

Remove function-static initializer and sync bootstrap inventory so bootstrap-selfhost-cli-driver-emit can compile src/cli_driver.php natively.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 8d1e72c into master May 27, 2026
@PurHur
PurHur deleted the agent/selfhost-cli-driver-emit branch May 27, 2026 12:25
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.

Self-host M5: native emit bin/vm.php and src/cli_driver.php blocked (driver sidecar path)

1 participant