From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Library:SQLite" |
|---|
| claim | "Unless built with SQLITE_OMIT_COMPILEOPTION_DIAGS, SQLite keeps the alphabetically sorted list of its compile-time options as strings without the SQLITE_ prefix ("COMPILER=msvc-1944", "DEFAULT_PAGE_SIZE=4096", "ENABLE_FTS5", "OMIT_UTF16", "THREADSAFE=1"...), read by sqlite3_compileoption_get(); they tell the configuration and the compiler version of a build." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:SQLite" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "string" |
|---|
| indicator | "THREADSAFE=0|1|2 (always present, default 1) near DEFAULT_*, ENABLE_*, MAX_* strings; COMPILER=clang-X.Y.Z (tested first, so clang-cl also reports clang), COMPILER=msvc-<_MSC_VER>, COMPILER=gcc-<the compiler's __VERSION__ text>; no COMPILER string for other compilers" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Generator of the sorted compile-option table (ctime.c)" |
|---|
| repo | "https://github.com/sqlite/sqlite" |
|---|
| commit | "43a48f77585a88940c727f33682151418f544059" |
|---|
| path | "tool/mkctimec.tcl" |
|---|
| lines | "1-60" |
|---|
|
| type | "string_xref" |
|---|
| detail | "Present in 9 of 10 Windows builds (COMPILER=msvc-1929/1938/1944, gcc-13.3.0; the 2014 build has no COMPILER= string); absent from Firefox's nss3.dll" |
|---|
|
| type | "string_xref" |
|---|
| detail | "Also absent (no THREADSAFE= or COMPILER= string) from the static SQLite 3.53.2 in Edge WebView's oneds.dll (System32), a build that also omits keywords and sqlite3_libversion_number: so 9 of 11 builds checked keep them" |
|---|
|
| type | "source" |
|---|
| detail | "set options(COMPILER): clang-major.minor.patch if __clang__, else msvc-_MSC_VER, else gcc-<__VERSION__> if __GNUC__; no COMPILER string on other compilers. set options(THREADSAFE): THREADSAFE=<SQLITE_THREADSAFE|THREADSAFE value> or THREADSAFE=1 by default. The whole table is inside #ifndef SQLITE_OMIT_COMPILEOPTION_DIAGS and each option entry is guarded by its own #if, so only options defined at build time appear." |
|---|
| repo | "https://github.com/sqlite/sqlite" |
|---|
| commit | "43a48f77585a88940c727f33682151418f544059" |
|---|
| path | "tool/mkctimec.tcl" |
|---|
| lines | "46-88, 360-370, 389-397" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "Compile option strings" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T19:38:09.405Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T10:08:54.259Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read tool/mkctimec.tcl at 43a48f7: COMPILER clang/msvc/gcc branches, THREADSAFE rule with default 1, whole table inside #ifndef SQLITE_OMIT_COMPILEOPTION_DIAGS. Binary counts in the evidence not re-checked." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-17T19:45:35.127Z" |
|---|
| summary | "Second build without the option strings (Edge WebView oneds.dll)" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T09:14:03.535Z" |
|---|
| summary | "Cited lines 1-60 do not hold the COMPILER and THREADSAFE rules; add lines 360-370 and 389-397: COMPILER= is clang first, else MSVC, else any GNUC-compatible compiler with its __VERSION__ text…" |
|---|
| changed | |
|---|
|
|
|---|