diff options
| author | ruki <[email protected]> | 2020-02-21 00:31:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-20 21:10:10 +0800 |
| commit | 0e18844e0081b436571bfe50dee5f1c18df848d6 (patch) | |
| tree | a8ae731b75e5a01786f3bf8214ef479e62c12051 | |
| parent | d233f14af9aa9173648f9ff4ff588604f5046deb (diff) | |
improve make for trybuild
| -rw-r--r-- | xmake/modules/private/action/trybuild/make.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/xmake/modules/private/action/trybuild/make.lua b/xmake/modules/private/action/trybuild/make.lua index 34f0ccaaa..41a6175a5 100644 --- a/xmake/modules/private/action/trybuild/make.lua +++ b/xmake/modules/private/action/trybuild/make.lua @@ -29,12 +29,20 @@ end -- do clean function clean() - os.vexec("make clean") + if is_subhost("windows") then + os.vexec("nmake clean") + else + os.vexec("make clean") + end end -- do build function build() - os.vexec("make -j" .. option.get("jobs")) + if is_subhost("windows") then + os.vexec("nmake") + else + os.vexec("make -j" .. option.get("jobs")) + end cprint("${bright}build ok!") end |
