fix global bake

This commit is contained in:
Tom van Dijck 2016-03-06 16:57:49 -08:00
parent 3c5ba0a6da
commit 9324eb47fa
2 changed files with 13 additions and 9 deletions

View File

@ -17,6 +17,12 @@
return p.container.new(p.global, name)
end
---
-- Bakes the global scope.
---
function global.bake(self)
p.container.bakeChildren(self)
end
---

View File

@ -43,7 +43,13 @@
---
function oven.bake()
p.container.bake(p.api.rootContainer())
-- reset the root _isBaked state.
-- this really only affects the unit-tests, since that is the only place
-- where multiple bakes per 'exe run' happen.
local root = p.api.rootContainer()
root._isBaked = false;
p.container.bake(root)
end
function oven.bakeWorkspace(wks)
@ -52,14 +58,6 @@
p.alias(oven, "bakeWorkspace", "bakeSolution")
---
-- Bakes the global scope.
---
function p.global.bake(self)
p.container.bakeChildren(self)
end
---
-- Bakes a specific workspace object.
---