diff --git a/build/fbcode_builder/getdeps.py b/build/fbcode_builder/getdeps.py index 87f3e2f..5c520bb 100755 --- a/build/fbcode_builder/getdeps.py +++ b/build/fbcode_builder/getdeps.py @@ -983,6 +983,11 @@ def add_common_arg(*args, **kwargs): action="store_true", default=False, ) + add_common_arg( + "--lfs-path", + help="Provide a parent directory for lfs when fbsource is unavailable", + default=None, + ) ap = argparse.ArgumentParser( description="Get and build dependencies and projects", parents=[common_args] diff --git a/build/fbcode_builder/getdeps/buildopts.py b/build/fbcode_builder/getdeps/buildopts.py index bdb90e3..72ea6fa 100644 --- a/build/fbcode_builder/getdeps/buildopts.py +++ b/build/fbcode_builder/getdeps/buildopts.py @@ -55,6 +55,7 @@ def __init__( use_shipit=False, vcvars_path=None, allow_system_packages=False, + lfs_path=None, ): """fbcode_builder_dir - the path to either the in-fbsource fbcode_builder dir, or for shipit-transformed repos, the build dir that @@ -109,6 +110,7 @@ def __init__( self.host_type = host_type self.use_shipit = use_shipit self.allow_system_packages = allow_system_packages + self.lfs_path = lfs_path if vcvars_path is None and is_windows(): # 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, vcvars_path=args.vcvars_path, allow_system_packages=args.allow_system_packages, + lfs_path=args.lfs_path, )