Skip to content

Commit

Permalink
Log if seed7/bin/sqlite3.dll (or .so) is 32-bit or 64-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMertes committed Nov 23, 2023
1 parent 5fb9f51 commit 005cb40
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/chkccomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -8170,6 +8170,7 @@ static void determineSqliteDefines (FILE *versionFile,
const char *sqliteInclude = NULL;
char testProgram[BUFFER_SIZE];
char dllPath[BUFFER_SIZE];
int dllPointerSize;
int dbHomeExists = 0;

/* determineSqliteDefines */
Expand Down Expand Up @@ -8273,8 +8274,13 @@ static void determineSqliteDefines (FILE *versionFile,
dllPath[0] = dllPath[1];
dllPath[1] = ':';
} /* if */
fprintf(logFile, "\rSQLite: DLL / Shared library: %s (%spresent)\n",
dllPath, canLoadDynamicLibrary(dllPath) ? "" : "not ");
fprintf(logFile, "\rSQLite: DLL / Shared library: %s (%s)",
dllPath, canLoadDynamicLibrary(dllPath) ? "present" : "cannot load");
dllPointerSize = pointerSizeOfDynamicLibrary(dllPath);
if (dllPointerSize != 0) {
fprintf(logFile, " (%d-bit)", dllPointerSize);
} /* if */
fprintf(logFile, "\n");
fprintf(versionFile, " \"%s\",", dllPath);
} /* for */
} /* if */
Expand Down

0 comments on commit 005cb40

Please sign in to comment.