mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-05 19:55:47 +03:00
build openssl in parallel
Summary: Make it faster, the build can run in parallel. Unfortunately install can't but its pretty quick anyway. Reviewed By: Croohand Differential Revision: D32608049 fbshipit-source-id: 6c86184993a065e29f95df658f1b50ba563a5b14
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8297a3aa4a
commit
cb9a2f00e4
@@ -885,14 +885,17 @@ class OpenSSLBuilder(BuilderBase):
|
||||
|
||||
perl = path_search(env, "perl", "perl")
|
||||
|
||||
make_j_args = []
|
||||
if self.build_opts.is_windows():
|
||||
make = "nmake.exe"
|
||||
args = ["VC-WIN64A-masm", "-utf-8"]
|
||||
elif self.build_opts.is_darwin():
|
||||
make = "make"
|
||||
make_j_args = ["-j%s" % self.build_opts.num_jobs]
|
||||
args = ["darwin64-x86_64-cc"]
|
||||
elif self.build_opts.is_linux():
|
||||
make = "make"
|
||||
make_j_args = ["-j%s" % self.build_opts.num_jobs]
|
||||
args = (
|
||||
["linux-x86_64"] if not self.build_opts.is_arm() else ["linux-aarch64"]
|
||||
)
|
||||
@@ -915,7 +918,10 @@ class OpenSSLBuilder(BuilderBase):
|
||||
"no-tests",
|
||||
]
|
||||
)
|
||||
self._run_cmd([make, "install_sw", "install_ssldirs"])
|
||||
make_build = [make] + make_j_args
|
||||
self._run_cmd(make_build)
|
||||
make_install = [make, "install_sw", "install_ssldirs"]
|
||||
self._run_cmd(make_install)
|
||||
|
||||
|
||||
class Boost(BuilderBase):
|
||||
|
Reference in New Issue
Block a user