From dbd69a7e7263760d592bcaf2abcde8758dd82fd1 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 28 Feb 2016 15:02:36 +0800 Subject: hide _DEFAULTS for option --- xmake/core/base/action.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmake/core/base/action.lua') diff --git a/xmake/core/base/action.lua b/xmake/core/base/action.lua index 3e713221e..d210b2874 100644 --- a/xmake/core/base/action.lua +++ b/xmake/core/base/action.lua @@ -64,7 +64,7 @@ function action._load_project() end -- xmake config or marked as "reconfig"? - if options._TASK == "config" or config._RECONFIG then + if option.task() == "config" or config._RECONFIG then -- probe the current project project.probe() @@ -103,14 +103,14 @@ function action.done(name) end -- probe the platform - if _action.need("platform") and (options._TASK == "config" or config._RECONFIG) then + if _action.need("platform") and (option.task() == "config" or config._RECONFIG) then if not platform.probe(false) then return false end end -- merge the default options - for k, v in pairs(options._DEFAULTS) do + for k, v in pairs(option.defaults()) do if nil == options[k] then options[k] = v end end -- cgit v1.3.1