Skip to content

Use arg variable instead of value.str for setting args->clibs#204

Open
bemxio wants to merge 1 commit intoJamesbarford:mainfrom
bemxio:clibs-parsing-fix
Open

Use arg variable instead of value.str for setting args->clibs#204
bemxio wants to merge 1 commit intoJamesbarford:mainfrom
bemxio:clibs-parsing-fix

Conversation

@bemxio
Copy link

@bemxio bemxio commented Mar 1, 2026

cliParseNop doesn't put rawarg into CliValue.str, and with it being empty, the library flags do not get appended to the build command.

For whatever reason though, this change makes the compiler SIGABRT, returning double free or corruption (!prev) happening when freeing an arena block and I don't know enough about region-based memory managment to fix it. It does produce a working executable though.

Might also be a good idea to rename it to -cflags= instead of -clibs= for general usage, though that's just a suggestion.

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