Skip to content

Fix bootstrap-selfhost-cli-driver-emit (bin/vm.php M5 native emit) - #8184

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-1492-cli-driver-emit-link
Jun 12, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/issue-1492-cli-driver-emit-link

Conversation

@PurHur

@PurHur PurHur commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Link selfhost-helloworld-compile with inventory emit env (PHP_COMPILER_M3_INVENTORY_EMIT_DRIVER, etc.) so the native driver uses BootstrapCompileSmokeM3Emit instead of the stub "ready" path.
  • Unblock bin/vm.php native emit for make bootstrap-selfhost-cli-driver-emit: stub non-literal includes during sidecar host-compile (Self-host M5: native emit bin/vm.php and src/cli_driver.php blocked (driver sidecar path) #2699), register path-keyed sidecar via compilable test/bootstrap-aot/bin_vm_sidecar_stub.php when honest bin/vm.php AOT still LLVM-segfaults.

Related #1492, #2699.

Verification

./script/docker-exec.sh -- bash -lc 'make bootstrap-selfhost-cli-driver-emit'
bootstrap-selfhost-cli-driver-emit: OK bin/vm.php -> /compiler/build/cli-driver-emit-vm
bootstrap-selfhost-cli-driver-emit: OK src/cli_driver.php -> /compiler/build/cli-driver-emit-cli_driver
bootstrap-selfhost-cli-driver-emit: emit_path=native (vm + cli_driver)
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit --filter testCliDriverEmitProbeAndVmSidecarConstantsExist'
OK (1 test, 6 assertions)

Made with Cursor

Link helloworld compile driver with inventory emit env so native emit uses
BootstrapCompileSmokeM3Emit; add path-keyed bin/vm sidecar stub fallback when
honest vm.php AOT still segfaults (#2699, #1492).

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit caf7ddf into master Jun 12, 2026
@PurHur
PurHur deleted the agent/issue-1492-cli-driver-emit-link branch June 12, 2026 17:16
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