Skip to content

AOT: remove shell_exec from Linker - #2790

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-2768-expr-closure-lowering
May 27, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/issue-2768-expr-closure-lowering

Conversation

@PurHur

@PurHur PurHur commented May 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove shell_exec('command -v ...') from lib/AOT/Linker.php by adding a small PATH-based which() helper and reusing runCaptured() for include-dir discovery.
  • Keeps linker/toolchain discovery compatible with self-host AOT constraints while preserving current behavior.

Fixes #2514

Test plan

  • ./script/docker-exec.sh -- bash -lc 'php bin/compile.php -l lib/AOT/Linker.php'
  • ./script/docker-exec.sh -- bash -lc 'BOOTSTRAP_LIB_SPINE_SMOKE=1 make bootstrap-selfhost-lib-spine-smoke'

Made with Cursor

Resolve toolchain discovery using PATH scanning and existing runCaptured(), so Linker stays compatible with self-host AOT constraints.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 60ea74f into master May 27, 2026
@PurHur
PurHur deleted the agent/issue-2768-expr-closure-lowering branch May 27, 2026 18:12
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 M4: promote lib/AOT/Linker.php in spine smoke (deferred native-link, #2134 post-link)

1 participant