Skip to content

Conversation

@danielebriggi
Copy link
Member

No description provided.

Gioee and others added 30 commits July 17, 2025 15:24
…ite AI extension. Add needed SQLITE_EXTENSION_INIT3 in utils.c.
… enhance platform-specific options for macOS, iOS, Android, Linux and iSIM
…ux builds and adjust Makefile for LLAMA and WHISPER user defined options
- Linux x86_64 build setup
@danielebriggi
Copy link
Member Author

danielebriggi commented Jul 17, 2025

@Gioee
I report here an improvement I asked to GPT and I agree on for the strip step:

- Stripping is usually done as a final step for release/distribution, not for testing/debugging.
- For best practice, you should:
   - Build the DLL.
   - (Optionally) run tests on the unstripped DLL (so you get better error messages and stack traces).
  - Strip the DLL only for packaging/distribution.
 
Current Makefile behavior:

- The DLL is stripped immediately after building, before running the test.
- This means the test uses the stripped DLL, which is not ideal for debugging.

How to improve:

- Move the $(STRIP) step to a separate target, e.g., strip or release.
- The test target should use the unstripped DLL.
- Only strip when you explicitly want a release build.

Summary:
The current Makefile strips the DLL before testing, which is not best practice. It would be better to strip only for release, not for test/debug.

I asked for it because I saw that the windows build is stripping the ddl before running the make test step which is kind of weird:
image

@danielebriggi danielebriggi force-pushed the add-cross-platform-builds branch from 90fbfdc to 73eee5d Compare July 17, 2025 13:44
@danielebriggi danielebriggi force-pushed the add-cross-platform-builds branch from 73eee5d to a049445 Compare July 17, 2025 13:46
@danielebriggi danielebriggi force-pushed the add-cross-platform-builds branch from 0d142ee to 2597117 Compare July 17, 2025 14:07
@danielebriggi danielebriggi force-pushed the add-cross-platform-builds branch 5 times, most recently from 063bd4b to 76c1165 Compare July 17, 2025 15:17
@danielebriggi danielebriggi force-pushed the add-cross-platform-builds branch 9 times, most recently from 75fa13a to 1cd6df0 Compare July 18, 2025 11:02
@danielebriggi danielebriggi force-pushed the add-cross-platform-builds branch from 1cd6df0 to 08d53d7 Compare July 18, 2025 12:03
@marcobambini marcobambini merged commit b6be2c3 into main Jul 23, 2025
1 of 3 checks passed
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.

4 participants