diff options
author | 2015-04-22 20:44:35 +0000 | |
---|---|---|
committer | 2015-04-23 09:19:26 +0000 | |
commit | bfb76a97dd54f49c0df2be5117301fdeb2c75654 (patch) | |
tree | ef86d1b82afc3ba3e60ed4651745f872acb45c51 /src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java | |
parent | 5a3078b5a35d5d9347690b45bf4c822a9d27c3e0 (diff) |
Simplify AnalysisEnvironment creation.
Instead of computing flags based on the configuration in two places, we pass
in the configuration and let the common code figure it out.
Also change it so each CT only depends on the build info collection for its
specific configuration. This should be safe, as the API doesn't allow passing
a configuration in - it instead takes ruleContext.getConfiguration, which
should be consistent with the dependency declarations in SkyframeBuildView in
all cases.
--
MOS_MIGRATED_REVID=91819844
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java index f1aa2f6eba..30358aca5b 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java @@ -122,11 +122,10 @@ public final class AspectFunction implements SkyFunction { throws AspectFunctionException { SkyframeBuildView view = buildViewProvider.getSkyframeBuildView(); BuildConfiguration configuration = associatedTarget.getConfiguration(); - boolean extendedSanityChecks = configuration != null && configuration.extendedSanityChecks(); StoredEventHandler events = new StoredEventHandler(); CachingAnalysisEnvironment analysisEnvironment = view.createAnalysisEnvironment( - key, false, extendedSanityChecks, events, env, true); + key, false, events, env, configuration); if (env.valuesMissing()) { return null; } |