Skip to content

LinuxMuslCheck: pass tool env via setEnv instead of command prefixes#1170

Merged
crazywhalecc merged 1 commit into
v3from
v3c/linux-musl-check-setenv
May 24, 2026
Merged

LinuxMuslCheck: pass tool env via setEnv instead of command prefixes#1170
crazywhalecc merged 1 commit into
v3from
v3c/linux-musl-check-setenv

Conversation

@henderkes
Copy link
Copy Markdown
Collaborator

Build the CC/CXX/AR/LD/RANLIB map once and hand it to shell()->setEnv() so the configure/make invocations don't have to repeat the same prefix on every line. For the sudo make-install path the env still needs to be on the command line (sudo strips the parent env), so the same map is rendered into $envFlags and prepended there. Also adds RANLIB, which the upstream Makefile honours.

What does this PR do?

Checklist before merging

  • If you modified *.php or *.yml, run them locally to ensure your changes are valid:
    • composer cs-fix
    • composer analyse
    • composer test
    • bin/spc dev:lint-config

Build the CC/CXX/AR/LD/RANLIB map once and hand it to shell()->setEnv()
so the configure/make invocations don't have to repeat the same prefix
on every line. For the sudo make-install path the env still needs to
be on the command line (sudo strips the parent env), so the same map
is rendered into $envFlags and prepended there. Also adds RANLIB,
which the upstream Makefile honours.
@crazywhalecc crazywhalecc merged commit 48d6e9e into v3 May 24, 2026
8 checks passed
@crazywhalecc crazywhalecc deleted the v3c/linux-musl-check-setenv branch May 24, 2026 14:59
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.

2 participants