Skip to content

Commit

Permalink
Allow custom evaluatorSupplier to be passed into SequencedSkyframeExe…
Browse files Browse the repository at this point in the history
…cutor.

PiperOrigin-RevId: 213290884
  • Loading branch information
janakdr authored and Copybara-Service committed Sep 17, 2018
1 parent 810d236 commit 99105db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ public static SequencedSkyframeExecutor create(
ActionOnIOExceptionReadingBuildFile actionOnIOExceptionReadingBuildFile,
BuildOptions defaultBuildOptions) {
return create(
InMemoryMemoizingEvaluator.SUPPLIER,
pkgFactory,
fileSystem,
directories,
Expand All @@ -212,6 +213,7 @@ public static SequencedSkyframeExecutor create(
}

public static SequencedSkyframeExecutor create(
EvaluatorSupplier evaluatorSupplier,
PackageFactory pkgFactory,
FileSystem fileSystem,
BlazeDirectories directories,
Expand All @@ -230,7 +232,7 @@ public static SequencedSkyframeExecutor create(
MutableArtifactFactorySupplier mutableArtifactFactorySupplier) {
SequencedSkyframeExecutor skyframeExecutor =
new SequencedSkyframeExecutor(
InMemoryMemoizingEvaluator.SUPPLIER,
evaluatorSupplier,
pkgFactory,
fileSystem,
directories,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.google.devtools.build.lib.packages.PackageFactory;
import com.google.devtools.build.lib.skyframe.SkyframeExecutor.MutableArtifactFactorySupplier;
import com.google.devtools.build.lib.vfs.FileSystem;
import com.google.devtools.build.skyframe.InMemoryMemoizingEvaluator;
import com.google.devtools.build.skyframe.SkyFunction;
import com.google.devtools.build.skyframe.SkyFunctionName;

Expand All @@ -49,6 +50,7 @@ public SkyframeExecutor create(
ImmutableMap<SkyFunctionName, SkyFunction> extraSkyFunctions,
Iterable<SkyValueDirtinessChecker> customDirtinessCheckers) {
return SequencedSkyframeExecutor.create(
InMemoryMemoizingEvaluator.SUPPLIER,
pkgFactory,
fileSystem,
directories,
Expand Down

0 comments on commit 99105db

Please sign in to comment.