From f01d472133c8f3a1b269926bedabaa42d7f2ec7d Mon Sep 17 00:00:00 2001 From: ketmar Date: Thu, 12 Sep 2013 21:46:38 +0300 Subject: [PATCH] write headers cache AFTER building --- src/jam.c | 3 +++ src/make.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jam.c b/src/jam.c index d10ca6a..8a73cb0 100644 --- a/src/jam.c +++ b/src/jam.c @@ -405,6 +405,9 @@ int main (int argc, char **argv, char **arg_environ) { if (!num_targets) status |= make(1, &all, anyhow); else status |= make(num_targets, (const char **)targets, anyhow); /* widely scattered cleanup */ +//#ifdef OPT_HEADER_CACHE_EXT + hcache_done(); +//#endif var_done(); donerules(); donestamps(); diff --git a/src/make.c b/src/make.c index c68d2e8..eb6b361 100644 --- a/src/make.c +++ b/src/make.c @@ -138,8 +138,9 @@ int make (int n_targets, const char **targets, int anyhow) { if (counts->cantfind) printf("...can't find %d target%s...\n", counts->cantfind, multiFormSfx(counts->cantfind)); if (counts->cantmake) printf("...can't make %d target%s...\n", counts->cantmake, multiFormSfx(counts->cantmake)); } + //k8: don't write cache here, 'cause build directory can be created later; write cache in main jam function //#ifdef OPT_HEADER_CACHE_EXT - hcache_done(); + //hcache_done(); //#endif globs.updating = counts->updating; //k8 #ifndef __NEATCC__ -- 2.11.4.GIT