diff options
author | 2016-02-12 09:59:22 +0000 | |
---|---|---|
committer | 2016-02-12 15:24:09 +0000 | |
commit | 08663e6cb80b256736a9f201df6e06f908589f32 (patch) | |
tree | 9e400725a23e2d8d41a8c7f531602d7da003f01c /src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java | |
parent | 10b24a7102c4221fbeb9e3cdbe87822e1fa51377 (diff) |
Add an experimental flag to enable the Skyframe-based loading phase runner.
Refactor the CommandEnvironment to no longer create a LoadingPhaseRunner
eagerly. Unfortunately, that means we can't reuse the TargetPatternEvaluator
either. Fortunately, the SkyframeTargetPatternEvaluator is a very lightweight
class, which only contains the offset as state, so we just create a new
instance whenever we need one.
On the plus side, the LoadingPhaseRunner API is now stateless, and the
QueryCommand no longer creates a unnecessary LoadingPhaseRunner instance.
--
MOS_MIGRATED_REVID=114519731
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java b/src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java index 47e9ebcf72..d32a0c68d1 100644 --- a/src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java +++ b/src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java @@ -1334,9 +1334,9 @@ public abstract class BuildViewTestCase extends FoundationTestCase { LoadingPhaseRunner runner = new LegacyLoadingPhaseRunner(getPackageManager(), Collections.unmodifiableSet(ruleClassProvider.getRuleClassMap().keySet())); - LoadingResult loadingResult = runner.execute(reporter, eventBus, targets, loadingOptions, - getTargetConfiguration().getAllLabels(), viewOptions.keepGoing, - isLoadingEnabled(), /*determineTests=*/false, /*callback=*/null); + LoadingResult loadingResult = runner.execute(reporter, eventBus, targets, + PathFragment.EMPTY_FRAGMENT, loadingOptions, getTargetConfiguration().getAllLabels(), + viewOptions.keepGoing, isLoadingEnabled(), /*determineTests=*/false, /*callback=*/null); if (!doAnalysis) { // TODO(bazel-team): What's supposed to happen in this case? return null; |