From c5f2c9e5488c0213e4eafb2775574343154bdc64 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 5 Jul 2017 09:39:50 +0800 Subject: fix compile for golang --- xmake/actions/build/kinds/object.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xmake/actions/build/kinds/object.lua b/xmake/actions/build/kinds/object.lua index 4acb9f863..57e87236c 100644 --- a/xmake/actions/build/kinds/object.lua +++ b/xmake/actions/build/kinds/object.lua @@ -211,6 +211,9 @@ function _build_single_object(target, buildinfo, sourcekind, sourcebatch, jobs, print(compiler.compcmd(sourcefiles, objectfiles, {target = target, sourcekind = sourcekind})) end + -- mark this target as modified + buildinfo.modified[target:name()] = true + -- complie them compiler.compile(sourcefiles, objectfiles, {incdepfiles = incdepfiles, target = target, sourcekind = sourcekind}) -- cgit v1.3.1