Skip to content

[nanvix] .nanvix/config: drop dead toolchain_paths / configure_env helpers#746

Open
esaurez wants to merge 1 commit into
feat/wave5-pr-c-unbundle-group-afrom
split/cleanup-config-dead-helpers
Open

[nanvix] .nanvix/config: drop dead toolchain_paths / configure_env helpers#746
esaurez wants to merge 1 commit into
feat/wave5-pr-c-unbundle-group-afrom
split/cleanup-config-dead-helpers

Conversation

@esaurez

@esaurez esaurez commented Jun 17, 2026

Copy link
Copy Markdown

Removes the unused toolchain_paths() and configure_env() helpers from .nanvix/config.py. The cpython build invokes make -f Makefile.nanvix, which has its own inline CONFIGURE_ENV that is authoritative for CC / CFLAGS / LDFLAGS / LIBS; these Python helpers are never called. They had also drifted to stale link flags (literal -lsqlite3 -lz -lbz2 -llzma in LIBS, with no DT_NEEDED awareness), so any caller that did pick them up would mis-build. configure_opts() (still called from build.py) and the toolchain / docker path constants are kept.

Validated with ./z lint.

Dependencies

Merges after nanvix/cpython#739, the base it branches from, but the removed helpers are already unused, so this is functionally independent of #739's contents. Independent of the three sibling cleanups that share the same base -- #745 (drop dead Makefile variables), #747 (split setup_local sections), and #748 (enable inet_pton) -- which touch different files, so the four can merge in any order.

Both helpers are unused: the actual cpython build invokes
`make -f Makefile.nanvix` which has its own inline CONFIGURE_ENV
authoritative for CC / CFLAGS / LDFLAGS / LIBS. The dead Python
copies had drifted to stale pre-Wave-7 link flags (literal -lsqlite3
-lz -lbz2 -llzma in LIBS, no DT_NEEDED awareness) and would have
mis-built any caller that picked them up.

Keep configure_opts() (still called from build.py) and the
toolchain / docker path constants (referenced elsewhere).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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