diff options
Diffstat (limited to 'xmake/scripts/action/_build.lua')
| -rw-r--r-- | xmake/scripts/action/_build.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/xmake/scripts/action/_build.lua b/xmake/scripts/action/_build.lua index 288485fc1..cf5c1ea93 100644 --- a/xmake/scripts/action/_build.lua +++ b/xmake/scripts/action/_build.lua @@ -33,14 +33,18 @@ local makefile = require("base/makefile") -- done the given config function _build.done() + -- the options + local options = xmake._OPTIONS + assert(options) + -- the target name - local target_name = config.get("target") + local target_name = options.target -- rebuild it? - if config.get("rebuild") or config.get("__rebuild") then + if options.rebuild or config.get("__rebuild") then clean.remove(target_name) -- update it? - elseif config.get("update") then + elseif options.update then clean.remove(target_name, true) end |
