From c8e4af0a7da8bfd80daf90d0fe3dad0163abf4b1 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 9 Oct 2021 13:23:51 +0800 Subject: Update object.lua --- xmake/rules/go/build/object.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/xmake/rules/go/build/object.lua b/xmake/rules/go/build/object.lua index e24620702..21436be47 100644 --- a/xmake/rules/go/build/object.lua +++ b/xmake/rules/go/build/object.lua @@ -27,10 +27,7 @@ import("utils.progress") -- build the source files function main(target, sourcebatch, opt) - - -- is verbose? - local verbose = option.get("verbose") - + -- get source files and kind local sourcefiles = sourcebatch.sourcefiles local sourcekind = sourcebatch.sourcekind @@ -73,9 +70,7 @@ function main(target, sourcebatch, opt) end -- trace verbose info - if verbose then - print(compinst:compcmd(sourcefiles, objectfile, {compflags = compflags})) - end + vprint(compinst:compcmd(sourcefiles, objectfile, {compflags = compflags})) -- compile it dependinfo.files = {} -- cgit v1.3.1