Skip to content

Self-host M2: promote bin/vm.php in spine smoke native link (#2134) - #2602

Merged
PurHur merged 1 commit into
masterfrom
selfhost/m2-bin-vm-spine-2134
May 26, 2026
Merged

Self-host M2: promote bin/vm.php in spine smoke native link (#2134)#2602
PurHur merged 1 commit into
masterfrom
selfhost/m2-bin-vm-spine-2134

Conversation

@PurHur

@PurHur PurHur commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Promote real bin/vm.php into compiler_lib_spine_smoke (replacing vm_run_smoke.php substitute) with spine-safe CLI argv skip via PHP_COMPILER_LIB_SPINE_SMOKE + cli_spine_shim.php.
  • Add self-host AOT compile-time skip in IncludeHelper for src/cli.php / src/cli_driver.php / vendor/autoload.php so spine link avoids Expr_Closure from the argv driver.
  • Clear bootstrap_spine_native_link_deferred() and update inventory/docs/tests for the last native-link deferral removal.

Test plan

  • BOOTSTRAP_LIB_SPINE_SMOKE=1 make bootstrap-selfhost-lib-spine-smokecompiler_lib_spine_smoke bundle OK
  • BOOTSTRAP_LIB_SPINE_VM_SMOKE=1 make bootstrap-selfhost-lib-spine-vm-smokevm-spine-ok
  • Targeted PHPUnit: BootstrapLibSpineVmSmokeTest, SelfhostSpineCoverageSyncTest, SelfhostSpineDeferredSyncTest

Closes #2134

Made with Cursor

Replace vm_run_smoke substitute with real bin/vm.php in compiler_lib_spine_smoke,
skip src/cli argv includes during self-host AOT compile, and clear the native-link
deferred list so M2 spine bundles the honest VM entry toward #2201.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 4394301 into master May 26, 2026
@PurHur
PurHur deleted the selfhost/m2-bin-vm-spine-2134 branch May 26, 2026 23: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 M2: native-link bin/vm.php + lib/AOT/Linker.php in spine smoke

1 participant