This should improve depgraph calculation performance.
TEST=Ran test suite.
BUG=chromium-os:15144
Change-Id: I9e06817201d7a17ae9b44b424d01c1a2bd89210a
elif root_deps == "rdeps":
ignore_build_time_deps = True
+ # If rebuild mode is not enabled, it's safe to discard ignored
+ # build-time dependencies.
+ if ignore_build_time_deps and not self._rebuild.rebuild:
+ edepend["DEPEND"] = ""
+
deps = (
(depend_root, edepend["DEPEND"],
self._priority(buildtime=True,