summaryrefslogtreecommitdiff
path: root/xmake/core/project/config.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-19 08:19:40 +0800
committerruki <[email protected]>2017-07-19 08:19:40 +0800
commit7910713ed804fb60fa8f13b0a4ce915347fc879a (patch)
treec14cea3b5e0b62ec5547b9e5a4e19563f6b66d0f /xmake/core/project/config.lua
parentbd56fe4e700dd2dede67bc39f8fa46903bdb8262 (diff)
fix config cache status
Diffstat (limited to 'xmake/core/project/config.lua')
-rw-r--r--xmake/core/project/config.lua35
1 files changed, 0 insertions, 35 deletions
diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua
index 6d5925c42..235118146 100644
--- a/xmake/core/project/config.lua
+++ b/xmake/core/project/config.lua
@@ -210,11 +210,6 @@ function config.read(name, targetname)
return value
end
--- init the config
-function config.init()
- config._CONFIGS = {}
-end
-
-- dump the configure
function config.dump()
@@ -224,35 +219,5 @@ function config.dump()
end
end
--- the configure has been changed for the given target?
-function config.changed(targetname)
-
- -- check
- targetname = targetname or "all"
-
- -- load configure from the file
- local fileinfo = {}
- local filepath = config._file()
- if os.isfile(filepath) then
-
- -- load it
- local results = io.load(filepath)
- if results and results._TARGETS then
- for name, value in pairs(table.wrap(results._TARGETS[targetname])) do
- fileinfo[name] = value
- end
- end
- end
-
- -- compare the current configure
- for name, value in pairs(config.options()) do
-
- -- changed?
- if fileinfo[name] ~= value then
- return true
- end
- end
-end
-
-- return module
return config