[EMAIL PROTECTED] wrote:

When testing, it is my usual practice to compile with
-DSQLITE_NO_SYNC=1 which turns off disk syncing.  This
very definitely makes the tests run way faster. I wonder if the Makefiles you are using are not setting
this option by default on windows but are on linux?


Richard,

I have included the diffs between the two makefiles I'm using on Linux and Windows. Both makefiles were generated by a simple configure command.

   ../sqlite/configure --with-tcl=<tcl directory>

On linux I have the readline libs installed.

--- F:\Makefile.linux    Fri Apr 27 11:16:36 2007
+++ C:\SQLite\SQLiteV3\build\Makefile    Fri Apr 27 12:09:35 2007
@@ -15,7 +15,7 @@
# The toplevel directory of the source tree.  This is the directory
# that contains this "Makefile.in" and the "configure.in" script.
#
-TOP = ../sqlite-3.3.17
+TOP = ../sqlite

# C Compiler and options for use in building executables that
# will run on the platform that is doing the build.
@@ -36,19 +36,19 @@

# Compiler options needed for programs that use the TCL library.
#
-TCC += -I/usr/include/tcl8.4
+TCC += -IC:/Tcl/include

# The library that programs using TCL must link against.
#
-LIBTCL = -L/usr/lib -ltcl8.4 -ldl  -lpthread -lieee -lm
+LIBTCL = -LC:/Tcl/lib -ltcl84

# Compiler options needed for programs that use the readline() library.
#
-READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline
+READLINE_FLAGS = -DHAVE_READLINE=0

# The library that programs using readline() must link against.
#
-LIBREADLINE = -lreadline -lreadline
+LIBREADLINE =

# Should the database engine be compiled threadsafe
#
@@ -81,8 +81,8 @@

# Filename extensions
#
-BEXE =
-TEXE =
+BEXE = .exe
+TEXE = .exe

# The following variable is "1" if the configure script was able to locate
# the tclConfig.sh file.  It is an empty string otherwise.  When this
@@ -102,7 +102,7 @@
prefix = /usr/local
exec_prefix = ${prefix}
libdir = ${exec_prefix}/lib
-INSTALL = /usr/bin/install -c
+INSTALL = /bin/install -c
LIBTOOL = ./libtool
ALLOWRELEASE =

@@ -112,7 +112,7 @@
LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)

# nawk compatible awk.
-NAWK = mawk
+NAWK = gawk

# You should not have to change anything below this line
###############################################################################
@@ -281,7 +281,7 @@

libtclsqlite3.la:    tclsqlite.lo libsqlite3.la
    $(LTLINK) -o libtclsqlite3.la tclsqlite.lo \
-        $(LIBOBJ) -L/usr/lib -ltclstub8.4 $(LIBPTHREAD) \
+        $(LIBOBJ) -LC:/Tcl/lib -ltclstub84 $(LIBPTHREAD) \
                -rpath $(libdir)/sqlite \
        -version-info "8:6:8"


I can't see anything significantly different between the two. The only place the SQLITE_NO_SYNC symbol appears is in the rule for building the testfixture target. It is the same, set to 1, for both Makefiles.

testfixture$(TEXE):    $(TOP)/src/tclsqlite.c libsqlite3.la $(TESTSRC)
   $(LTLINK) -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 \
               -DSQLITE_NO_SYNC=1 $(TEMP_STORE) \
       -o testfixture $(TESTSRC) $(TOP)/src/tclsqlite.c \
       libsqlite3.la $(LIBTCL)

Are you suggesting that -DSQLITE_NO_SYNC=1should be added to TCC so it affects all compiles?

Dennis Cote


-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to