diff options
| author | ruki <[email protected]> | 2021-10-09 13:23:51 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-09 13:23:51 +0800 |
| commit | c8e4af0a7da8bfd80daf90d0fe3dad0163abf4b1 (patch) | |
| tree | 64deb2bbba27fd39eecf971652468040cb217291 | |
| parent | f9487fe520c7a3266cc5ce91576ec06c1520c93a (diff) | |
Update object.lua
| -rw-r--r-- | xmake/rules/go/build/object.lua | 9 |
1 files 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 = {} |
