summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/trybuild/make.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-21 00:49:09 +0800
committerruki <[email protected]>2020-02-20 22:54:57 +0800
commit12d44e1e32132c859df769247d8e459388071bb5 (patch)
treeb925661646fe2736b95f5ab3936bcb8ec11049e9 /xmake/modules/private/action/trybuild/make.lua
parent9dfb87323ac852553ceaf08ffcd4cfc473d2e442 (diff)
enable verbose for cmake/make
Diffstat (limited to 'xmake/modules/private/action/trybuild/make.lua')
-rw-r--r--xmake/modules/private/action/trybuild/make.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/xmake/modules/private/action/trybuild/make.lua b/xmake/modules/private/action/trybuild/make.lua
index 01ea217c0..8224298a7 100644
--- a/xmake/modules/private/action/trybuild/make.lua
+++ b/xmake/modules/private/action/trybuild/make.lua
@@ -40,10 +40,15 @@ end
-- do build
function build()
assert(is_subhost(config.plat()), "make: %s not supported!", config.plat())
+ local argv = {}
+ if option.get("verbose") or option.get("diagnosis") then
+ table.insert(argv, "VERBOSE=1")
+ end
if is_subhost("windows") then
- os.vexec("nmake")
+ os.vexecv("nmake", argv)
else
- os.vexec("make -j" .. option.get("jobs"))
+ table.insert(argv, "-j" .. option.get("jobs"))
+ os.vexecv("make", argv)
end
cprint("${bright}build ok!")
end