incremental compilation: save the configuration

This commit is contained in:
Andreas Rumpf 2018-06-11 00:14:29 +02:00
commit 90b1030dec
2 changed files with 29 additions and 11 deletions

View file

@ -33,6 +33,7 @@ when nimIncremental:
db*: DbConn
w*: Writer
r*: Reader
configChanged*: bool
proc init*(incr: var IncrementalCtx) =
incr.w.sstack = @[]
@ -92,6 +93,12 @@ when nimIncremental:
);
""")
db.exec(sql"""
create table if not exists config(
config varchar(8000) not null
);
""")
db.exec(sql"""
create table if not exists filenames(
id integer primary key,