Commit c9299818 authored by Adam Simpkins's avatar Adam Simpkins Committed by Facebook Github Bot

add a command line option to disable the build cache

Summary:
This is useful when working on changes to some of the builder functions,
to skip ever trying to use cached results.

Reviewed By: chadaustin

Differential Revision: D17401219

fbshipit-source-id: fb7d5ea45618653957b9bd6a62eed91d8334824d
parent eb473c29
...@@ -356,7 +356,7 @@ class BuildCmd(ProjectCmdBase): ...@@ -356,7 +356,7 @@ class BuildCmd(ProjectCmdBase):
print("Building on %s" % loader.ctx_gen.get_context(args.project)) print("Building on %s" % loader.ctx_gen.get_context(args.project))
projects = loader.manifests_in_dependency_order() projects = loader.manifests_in_dependency_order()
cache = cache_module.create_cache() cache = cache_module.create_cache() if args.use_build_cache else None
# Accumulate the install directories so that the build steps # Accumulate the install directories so that the build steps
# can find their dep installation # can find their dep installation
...@@ -456,6 +456,13 @@ class BuildCmd(ProjectCmdBase): ...@@ -456,6 +456,13 @@ class BuildCmd(ProjectCmdBase):
"slow up-to-date-ness checks" "slow up-to-date-ness checks"
), ),
) )
parser.add_argument(
"--no-build-cache",
action="store_false",
default=True,
dest="use_build_cache",
help="Do not attempt to use the build cache.",
)
parser.add_argument( parser.add_argument(
"--schedule-type", help="Indicates how the build was activated" "--schedule-type", help="Indicates how the build was activated"
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment