mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-07 07:02:53 +03:00
Add an option to specify lfs path
Reviewed By: rsunkad Differential Revision: D24750170 fbshipit-source-id: 5c48ab812b5438a33713315faf83e7a21a3c4eae
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d2c5ebaeb9
commit
765390bd50
@@ -983,6 +983,11 @@ def parse_args():
|
|||||||
action="store_true",
|
action="store_true",
|
||||||
default=False,
|
default=False,
|
||||||
)
|
)
|
||||||
|
add_common_arg(
|
||||||
|
"--lfs-path",
|
||||||
|
help="Provide a parent directory for lfs when fbsource is unavailable",
|
||||||
|
default=None,
|
||||||
|
)
|
||||||
|
|
||||||
ap = argparse.ArgumentParser(
|
ap = argparse.ArgumentParser(
|
||||||
description="Get and build dependencies and projects", parents=[common_args]
|
description="Get and build dependencies and projects", parents=[common_args]
|
||||||
|
@@ -55,6 +55,7 @@ class BuildOptions(object):
|
|||||||
use_shipit=False,
|
use_shipit=False,
|
||||||
vcvars_path=None,
|
vcvars_path=None,
|
||||||
allow_system_packages=False,
|
allow_system_packages=False,
|
||||||
|
lfs_path=None,
|
||||||
):
|
):
|
||||||
"""fbcode_builder_dir - the path to either the in-fbsource fbcode_builder dir,
|
"""fbcode_builder_dir - the path to either the in-fbsource fbcode_builder dir,
|
||||||
or for shipit-transformed repos, the build dir that
|
or for shipit-transformed repos, the build dir that
|
||||||
@@ -109,6 +110,7 @@ class BuildOptions(object):
|
|||||||
self.host_type = host_type
|
self.host_type = host_type
|
||||||
self.use_shipit = use_shipit
|
self.use_shipit = use_shipit
|
||||||
self.allow_system_packages = allow_system_packages
|
self.allow_system_packages = allow_system_packages
|
||||||
|
self.lfs_path = lfs_path
|
||||||
if vcvars_path is None and is_windows():
|
if vcvars_path is None and is_windows():
|
||||||
|
|
||||||
# On Windows, the compiler is not available in the PATH by
|
# On Windows, the compiler is not available in the PATH by
|
||||||
@@ -453,4 +455,5 @@ def setup_build_options(args, host_type=None):
|
|||||||
use_shipit=args.use_shipit,
|
use_shipit=args.use_shipit,
|
||||||
vcvars_path=args.vcvars_path,
|
vcvars_path=args.vcvars_path,
|
||||||
allow_system_packages=args.allow_system_packages,
|
allow_system_packages=args.allow_system_packages,
|
||||||
|
lfs_path=args.lfs_path,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user