mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-10 05:22:59 +03:00
fix travis build failure for 'sigar' package
Summary: Added option to send parameters to 'configure' script from fbcode builder Reviewed By: jstrizich Differential Revision: D9004547 fbshipit-source-id: da54fa2dd453aab29051f37106423807a260535a
This commit is contained in:
committed by
Facebook Github Bot
parent
0bdb84798e
commit
6713be5d67
@@ -316,15 +316,26 @@ class FBCodeBuilder(object):
|
||||
)),
|
||||
]
|
||||
|
||||
def configure(self):
|
||||
def configure(self, name=None):
|
||||
autoconf_options = {}
|
||||
if name is not None:
|
||||
autoconf_options.update(
|
||||
self.option('{0}:autoconf_options'.format(name), {})
|
||||
)
|
||||
return [
|
||||
self.run(ShellQuoted(
|
||||
'LDFLAGS="$LDFLAGS -L"{p}"/lib -Wl,-rpath="{p}"/lib" '
|
||||
'CFLAGS="$CFLAGS -I"{p}"/include" '
|
||||
'CPPFLAGS="$CPPFLAGS -I"{p}"/include" '
|
||||
'PY_PREFIX={p} '
|
||||
'./configure --prefix={p}'
|
||||
).format(p=self.option('prefix'))),
|
||||
'./configure --prefix={p} {args}'
|
||||
).format(
|
||||
p=self.option('prefix'),
|
||||
args=shell_join(' ', (
|
||||
ShellQuoted('{k}={v}').format(k=k, v=v)
|
||||
for k, v in autoconf_options.items()
|
||||
)),
|
||||
)),
|
||||
]
|
||||
|
||||
def autoconf_install(self, name):
|
||||
|
Reference in New Issue
Block a user