From b02e5fc9da96945b0be2452bdbbf5b9801e68b69 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 16 Jun 2015 11:38:50 +0800 Subject: modify the compiler and linker command --- xmake/scripts/action/_clean.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xmake/scripts/action/_clean.lua') diff --git a/xmake/scripts/action/_clean.lua b/xmake/scripts/action/_clean.lua index 2a479157f..31b5209d3 100644 --- a/xmake/scripts/action/_clean.lua +++ b/xmake/scripts/action/_clean.lua @@ -26,6 +26,7 @@ local _clean = _clean or {} -- load modules local clean = require("base/clean") local config = require("base/config") +local project = require("base/project") local platform = require("platform/platform") -- done the given config @@ -35,6 +36,11 @@ function _clean.done() local options = xmake._OPTIONS assert(options) + -- check target + if not project.checktarget(options.target) then + return false + end + -- clean the current target if not clean.remove(options.target) then return false -- cgit v1.3.1