diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-05-29 17:05:43 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-05-29 17:05:43 +0900 |
commit | 98500376676872e3e7df9ab18bcb1406f1d47a70 (patch) | |
tree | 0b44963424063ba790e9acabb5117e92a2cc78b0 /serialize.go | |
parent | ea553f3305b184e8930d82d99c80392f5e7185f9 (diff) | |
download | kati-98500376676872e3e7df9ab18bcb1406f1d47a70.tar.gz |
Serialize exported variables
Diffstat (limited to 'serialize.go')
-rw-r--r-- | serialize.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/serialize.go b/serialize.go index 6422dbe..e7c4b12 100644 --- a/serialize.go +++ b/serialize.go @@ -96,6 +96,7 @@ type SerializableGraph struct { Targets []string Roots []string ReadMks []*ReadMakefile + Exports map[string]bool } func encGob(v interface{}) string { @@ -221,6 +222,7 @@ func MakeSerializableGraph(g *DepGraph, roots []string) SerializableGraph { Targets: ns.targets, Roots: roots, ReadMks: g.readMks, + Exports: g.exports, } } @@ -536,6 +538,7 @@ func DeserializeGraph(g SerializableGraph) *DepGraph { nodes: nodes, vars: vars, readMks: g.ReadMks, + exports: g.Exports, } } |