SQLite Forum

Compile for Apple Silicon
Login
I wound up switching to autoconf for macOS with the following build command:

```
CC=clang CFLAGS="-arch x86_64 -arch arm64 -Os -DDSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_DQS=0 -DSQLITE_ENABLE_COLUMN_METADATA" ./configure; make
```

Which I think will effectively match the amalgamation build for Windows run via x64 Native Tools Command Prompt for VS 2022:

```
cl -O2 -DSQLITE_API=__declspec(dllexport) -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_DQS=0 -DSQLITE_ENABLE_COLUMN_METADATA sqlite3.c -link -dll -out:sqlite3.dll
```

Next up, tweaking sqlite-net to add bindings to the session extensions.

Thanks to everyone for all the help. Hoping to write up all of my notes as an article for future reference.