diff options
| author | ruki <[email protected]> | 2020-04-07 23:49:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-07 16:54:34 +0800 |
| commit | 088df3a0bbe2bd99b5d60a5a1f5fb54d4be1673d (patch) | |
| tree | 316d3c3aeaeccd20e8ace1435a7badaf76069a48 /xmake/modules/package/tools/cmake.lua | |
| parent | 20b25b2a16d0282b0496f23d0f0e1ba8842b9205 (diff) | |
support m32 for autoconf and make
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 4a790ede8..313d15396 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -130,7 +130,8 @@ function install(package, configs, opt) os.cp("**.exp", package:installdir("lib")) end else - argv = {"-j4"} + local njob = tostring(math.ceil(os.cpuinfo().ncpu * 3 / 2)) + argv = {"-j" .. njob} if option.get("verbose") then table.insert(argv, "VERBOSE=1") end |
