summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/config.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-25 15:59:53 +0800
committerruki <[email protected]>2015-06-25 15:59:53 +0800
commit8f45b7c5b9e62f3ac2cc8782d4de1bff3ed31008 (patch)
treeb0d60cff07630412756bf5e401c61aff1db6e4b4 /xmake/scripts/base/config.lua
parent8d46305db1819357868d3c71a61d98856aa0fa5a (diff)
load and make configure for package
Diffstat (limited to 'xmake/scripts/base/config.lua')
-rw-r--r--xmake/scripts/base/config.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/xmake/scripts/base/config.lua b/xmake/scripts/base/config.lua
index d6f6d9625..eebe805bb 100644
--- a/xmake/scripts/base/config.lua
+++ b/xmake/scripts/base/config.lua
@@ -337,6 +337,17 @@ function config.clearup()
end
+-- reload configure
+function config.reload()
+
+ -- clear the old configure
+ config._CURRENT = nil
+ config._CONFIGS = nil
+
+ -- load it
+ return config.load()
+end
+
-- dump the current configure
function config.dump()