diff options
author | 2015-10-14 10:08:25 +0000 | |
---|---|---|
committer | 2015-10-14 18:29:19 +0000 | |
commit | d6fce4428db80f8e5d369581baea415e202cfe62 (patch) | |
tree | 2307e2312857d082593a658b7c7bd3988145719c /src/main/java/com/google/devtools/build/lib/pkgcache/LoadingPhaseRunner.java | |
parent | 17f11ebecacad00868d5e311254edb147daf156f (diff) |
Reimplement target pattern parsing in Skyframe.
This is currently not hooked up, and we're passing (potentially) massive
numbers of targets around.
--
MOS_MIGRATED_REVID=105395404
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/pkgcache/LoadingPhaseRunner.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/pkgcache/LoadingPhaseRunner.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/pkgcache/LoadingPhaseRunner.java b/src/main/java/com/google/devtools/build/lib/pkgcache/LoadingPhaseRunner.java index 24043d3b1a..f5844f0350 100644 --- a/src/main/java/com/google/devtools/build/lib/pkgcache/LoadingPhaseRunner.java +++ b/src/main/java/com/google/devtools/build/lib/pkgcache/LoadingPhaseRunner.java @@ -369,6 +369,7 @@ public class LoadingPhaseRunner { callback.notifyTargets(targets.getTargets()); } maybeReportDeprecation(eventHandler, targets.getTargets()); + if (enableLoading) { return doLoadingPhase(eventHandler, eventBus, targets, testsToRun, labelsToLoadUnconditionally, keepGoing, options.loadingPhaseThreads, callback); @@ -635,7 +636,8 @@ public class LoadingPhaseRunner { * style warnings for the same target and it is a good thing; <i>depending</i> on a target and * <i>wanting</i> to build it are different things. */ - private void maybeReportDeprecation(EventHandler eventHandler, Collection<Target> targets) { + // Public for use by skyframe.TargetPatternPhaseFunction until this class goes away. + public static void maybeReportDeprecation(EventHandler eventHandler, Collection<Target> targets) { for (Rule rule : Iterables.filter(targets, Rule.class)) { if (rule.isAttributeValueExplicitlySpecified("deprecation")) { eventHandler.handle(Event.warn(rule.getLocation(), String.format( |