From 4fd209354ecf8a6f90b5a19a18e2268e3c9d649f Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 5 Jun 2015 11:20:58 +0800 Subject: fix some bug for config --- xmake/scripts/action/_build.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'xmake/scripts/action/_build.lua') 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 -- cgit v1.3.1