sqlite amalgamation in third_party #161
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added SQLite to
third_party
subfolder of Cosmopolitan repo.Steps to replicate:
superconfigure
and thenmake
to obtainsqlite3.c
andshell.c
sqlite3.mk
based on Makefile obtained above#include
s via find-and-replace to use the Cosmopolitan headers (<math.h>
to"libc/math.h"
etc.)Wredundant-decls
)clang-format
onsqlite3.c
requires a lot of RAM (crashed my system when I had 8GB RAM available).sqlite.com
compiles and runs underMODE=dbg
andMODE=tiny
(1024KB executable withMODE=tiny
).