Skip to content

BugFix: Fix elixir_make (Mix NIF) dependency autopatch (#1054) - #1055

Open
artman41 wants to merge 4 commits into
ninenines:masterfrom
artman41:bugfix/gh1054
Open

BugFix: Fix elixir_make (Mix NIF) dependency autopatch (#1054)#1055
artman41 wants to merge 4 commits into
ninenines:masterfrom
artman41:bugfix/gh1054

Conversation

@artman41

@artman41 artman41 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #1054

To be upfront: Claude Found and Fixed this while I was having it scaffold a project.

This MR is a reimplementation of the fixes the AI made on my local repo.

I've taken a look over the code & test and it seems good.

Happy to reduce the comments in the tests if you think they're excessive

…as no test coverage.

Add core-elixir-nif-elixir-make, which builds Exqlite for real and verifies its NIF actually loads.
…irectly onto the make target with no space, producing a nonexistent elixir_make.mkall target.

Insert the missing space between the -f path and the make targets/args.
…IR/ERL_EI_LIBDIR, which Mix normally injects automatically but erlang.mk never set.

Export all four as computed env vars before invoking the dependency's build recipe.
…r_make dependencies' sources a second time without the right flags, clobbering the correct build.

Point C_SRC_DIR at a nonexistent path for elixir_make deps so the generic auto-build no-ops.
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.

elixir_make (Elixir NIF) Makefiles are handled incorrectly incorrectly

1 participant