Skip to content

add platform builds#1

Merged
Gioee merged 33 commits intomainfrom
add-platform-builds
Mar 4, 2026
Merged

add platform builds#1
Gioee merged 33 commits intomainfrom
add-platform-builds

Conversation

@Gioee
Copy link
Member

@Gioee Gioee commented Feb 17, 2026

No description provided.

Gioee added 27 commits February 12, 2026 13:56
…ENSE.md; fix sqlite-memory.c to load extension only when it is statically linked
…ine LLAMA options and link flags for macOS, iOS, and Android
…ch to avoid shell escaping issues with PLIST/MODULEMAP
@Gioee Gioee self-assigned this Feb 17, 2026
@Gioee Gioee added the enhancement New feature or request label Feb 17, 2026
rc = SQLITE_OK;
}

// explicitly allows extension loading (only when loaded dynamically)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to conditionally enable load extensions because when compiled without sqlite3.c it was giving me this error

Undefined symbols for architecture arm64:
  "_sqlite3_enable_load_extension", referenced from:
      _sqlite3_memory_init in sqlite-memory.o
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

int dbmem_compute_uuid_v7 (uint8_t value[DBMEM_UUID_LEN]) {
// fill the buffer with high-quality random data
#ifdef _WIN32
if (BCryptGenRandom(NULL, (BYTE*)value, DBMEM_UUID_LEN, BCRYPT_USE_SYSTEM_PREFERRED_RNG) != STATUS_SUCCESS) return -1;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

STATUS_SUCCESS was undefined on Windows

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added the LICENSE file because to compile the Android AAR package is needed, otherwise it trows errors. Feel free to change the license to everything else, I've copied this one from the other extensions license.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the tests I've just changed the directory for the test files since on Windows and Android the /tmp directory is unavailable. Everything else remains unchanged.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some platforms required the sqlite3.h file to compile since they don't have the system one available.

@Gioee Gioee requested a review from marcobambini February 17, 2026 15:21
@Gioee Gioee merged commit 1f92a43 into main Mar 4, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants