diff options
| author | ruki <[email protected]> | 2015-06-10 18:25:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-10 18:25:18 +0800 |
| commit | 62f8e7581602d698a341db16257bd3d9304fa30d (patch) | |
| tree | df06a9cade4d74d149b924d2f6dfe0f95632e28b /xmake/scripts/base/project.lua | |
| parent | 72faab4c7e6468d94364e2fec7c11614845d0c74 (diff) | |
trace probe verbose
Diffstat (limited to 'xmake/scripts/base/project.lua')
| -rw-r--r-- | xmake/scripts/base/project.lua | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/xmake/scripts/base/project.lua b/xmake/scripts/base/project.lua index 6b1b7406b..19da97029 100644 --- a/xmake/scripts/base/project.lua +++ b/xmake/scripts/base/project.lua @@ -396,7 +396,7 @@ function project._make_options(configs) for k, v in pairs(configs._OPTIONS) do -- this option has not been enabled? - if not config.get(k) then + if nil == config.get(k) then -- make option local o = project._make_option(k, v) @@ -408,7 +408,23 @@ function project._make_options(configs) -- save this option to configure config.set("__" .. k, o) + else + + -- disable this option + config.set(k, false) + + -- clear this option to configure + config.set("__" .. k, nil) + end + + -- trace + utils.verbose("checking %s ...: %s", k, utils.ifelse(o, "ok", "no")) + + else + + -- trace + utils.verbose("checking %s ...: %s", k, "ok") end end end |
