1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-05 19:55:47 +03:00

Add a flag only_install to omit the plain make step

Summary:
X-link: https://github.com/facebookincubator/zstrong/pull/849

Needed for installing ghc binaries, which have an autoconf-based
distribution that only supports `make install`, not `make`.

Reviewed By: chadaustin

Differential Revision: D58011865

fbshipit-source-id: db7c3cc45701201466a6b2853c5f3515b178fa74
This commit is contained in:
Simon Marlow
2024-06-01 08:15:42 -07:00
committed by Facebook GitHub Bot
parent f1d35639d6
commit a8ca678c84
2 changed files with 4 additions and 1 deletions

View File

@@ -362,6 +362,8 @@ class AutoconfBuilder(BuilderBase):
self._run_cmd(["autoreconf", "-ivf"], cwd=self.src_dir, env=env)
configure_cmd = [configure_path, "--prefix=" + self.inst_dir] + self.args
self._run_cmd(configure_cmd, env=env)
only_install = self.manifest.get("build", "only_install", "false", ctx=self.ctx)
if not only_install:
self._run_cmd([self._make_binary, "-j%s" % self.num_jobs], env=env)
self._run_cmd([self._make_binary, "install"], env=env)

View File

@@ -64,6 +64,7 @@ SCHEMA = {
"subdir": OPTIONAL,
"make_binary": OPTIONAL,
"build_in_src_dir": OPTIONAL,
"only_install": OPTIONAL,
"job_weight_mib": OPTIONAL,
"patchfile": OPTIONAL,
"patchfile_opts": OPTIONAL,