summaryrefslogtreecommitdiff
path: root/xmake/core/project/config.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-04-06 10:06:50 +0800
committerruki <[email protected]>2016-04-06 10:06:50 +0800
commit986109fa37d1c4b13ad970395358cc5ca6bacc08 (patch)
treedfb50f4e61d54b9d9c9946e0389f96646407ebe5 /xmake/core/project/config.lua
parent17cef33022bf3308ebd03546ab65464f9390e69c (diff)
re-config it if host changed
Diffstat (limited to 'xmake/core/project/config.lua')
-rw-r--r--xmake/core/project/config.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua
index b43584f83..a687d5416 100644
--- a/xmake/core/project/config.lua
+++ b/xmake/core/project/config.lua
@@ -94,7 +94,6 @@ function config.directory()
return path.join(xmake._PROJECT_DIR, ".xmake")
end
--- TODO: reconfig, rebuild
-- load the project configure
function config.load(targetname)
@@ -181,6 +180,14 @@ function config.save(targetname)
return io.save(config._file(), results)
end
+-- init the config
+function config.init()
+
+ -- clear it
+ config._CONFIGS = {}
+
+end
+
-- dump the configure
function config.dump()