commit | fe1dca11d067188a117215ea24e95ee190569acd | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Mon May 25 20:00:48 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Mon May 25 20:00:48 2015 +0900 |
tree | 6bab01df31e8c9a04f54f1123397c167d553ca5a | |
parent | 006adbf5e7e78d0b659abdfcbb98b99c4b0c6b10 [diff] |
Do not store read makefiles if --use_cache is not specified
diff --git a/eval.go b/eval.go index 52e6c13..45eb203 100644 --- a/eval.go +++ b/eval.go
@@ -262,6 +262,10 @@ } func (ev *Evaluator) updateReadMakefile(fn string, c []byte, st int32) { + if !useCache { + return + } + rm, present := ev.readMks[fn] if present { switch rm.State {