Skip to content

Add additional_sources for compiling extra C sources - #395

Open
dariyooo wants to merge 2 commits into
simolus3:mainfrom
dariyooo:feat-additional_sources
Open

Add additional_sources for compiling extra C sources#395
dariyooo wants to merge 2 commits into
simolus3:mainfrom
dariyooo:feat-additional_sources

Conversation

@dariyooo

@dariyooo dariyooo commented Aug 2, 2026

Copy link
Copy Markdown

Note: This PR builds upon #394

source: source compiles exactly one file, so combining SQLite with extensions that ship as C sources means concatenating them into one unit. That doesn't generally work: vec1.c and sqlite3.c both define i8, one as char and one as signed char, and C has no way to separate them within a unit.

additional_sources compiles each entry as its own unit, alongside path. CBuilder.library already takes a list, so this just forwards it. Paths are resolved like the other options.

Test added to test/hook/description_test.dart.

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