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/_build.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xmake/scripts/action/_build.lua') diff --git a/xmake/scripts/action/_build.lua b/xmake/scripts/action/_build.lua index 748ed54e1..bb4cdf1de 100644 --- a/xmake/scripts/action/_build.lua +++ b/xmake/scripts/action/_build.lua @@ -28,6 +28,7 @@ local rule = require("base/rule") local utils = require("base/utils") local clean = require("base/clean") local config = require("base/config") +local project = require("base/project") local makefile = require("base/makefile") -- done the given config @@ -40,6 +41,11 @@ function _build.done() -- the target name local target_name = options.target + -- check target + if not project.checktarget(target_name) then + return false + end + -- rebuild it? if options.rebuild or config.get("__rebuild") then clean.remove(target_name) -- cgit v1.3.1