improve compilation jobs for boost (#2025)

* improve compilation jobs for boost

* Update xmake.lua

---------

Co-authored-by: ruki <waruqi@gmail.com>
pull/2027/head
wanzzhehe 2 years ago committed by GitHub
parent 2f05582ed6
commit e82b8edd15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/b/boost/xmake.lua

@ -128,6 +128,7 @@ package("boost")
end)
on_install("macosx", "linux", "windows", "bsd", "mingw", "cross", function (package)
import("core.base.option")
-- force boost to compile with the desired compiler
local file = io.open("user-config.jam", "a")
@ -170,12 +171,13 @@ package("boost")
end
os.vrun("./b2 headers")
local njobs = option.get("jobs") or tostring(os.default_njob())
local argv =
{
"--prefix=" .. package:installdir(),
"--libdir=" .. package:installdir("lib"),
"-d2",
"-j4",
"-j" .. njobs,
"--hash",
"--layout=tagged-1.66", -- prevent -x64 suffix in case cmake can't find it
"--user-config=user-config.jam",

Loading…
Cancel
Save