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

set SDKROOT when it is not already set

Summary: `SDKROOT` is a requirement if we manually specify the location of the compiler on macOS. Otherwise it wouldn't be able to find the system libraries headers.

Reviewed By: wez

Differential Revision: D22577887

fbshipit-source-id: 98140e6f9e564d665db085d21023986b240b3732
This commit is contained in:
Zeyi (Rice) Fan
2020-07-26 15:01:03 -07:00
committed by Facebook GitHub Bot
parent ba88d5d42e
commit eb5b082107
2 changed files with 12 additions and 2 deletions

View File

@@ -799,6 +799,7 @@ class Boost(BuilderBase):
self.b2_args = b2_args
def _build(self, install_dirs, reconfigure):
env = self._compute_env(install_dirs)
linkage = ["static"]
if self.build_opts.is_windows():
linkage.append("shared")
@@ -814,12 +815,14 @@ class Boost(BuilderBase):
for link in linkage:
if self.build_opts.is_windows():
bootstrap = os.path.join(self.src_dir, "bootstrap.bat")
self._run_cmd([bootstrap], cwd=self.src_dir)
self._run_cmd([bootstrap], cwd=self.src_dir, env=env)
args += ["address-model=64"]
else:
bootstrap = os.path.join(self.src_dir, "bootstrap.sh")
self._run_cmd(
[bootstrap, "--prefix=%s" % self.inst_dir], cwd=self.src_dir
[bootstrap, "--prefix=%s" % self.inst_dir],
cwd=self.src_dir,
env=env,
)
b2 = os.path.join(self.src_dir, "b2")
@@ -843,6 +846,7 @@ class Boost(BuilderBase):
"install",
],
cwd=self.src_dir,
env=env,
)