commit | 95d94fa1ebb5e173668f66fc24be10c24ea7dd45 | [log] [tgz] |
---|---|---|
author | Googler <noreply@google.com> | Sat Apr 06 06:20:23 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Sat Apr 06 06:22:14 2019 -0700 |
tree | 0b4741994cdd63e6e57f1b0e654e927e86ef27be | |
parent | b6bf694ddf28e7bf5c033608ecba33278d9ae70f [diff] |
Inform SkyframeExecutor of top level host configuration changes. PiperOrigin-RevId: 242272628
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeBuildView.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeBuildView.java index 9e8ea6d..3cf640c 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeBuildView.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeBuildView.java
@@ -328,6 +328,7 @@ } hostConfigurationCache.clear(); this.topLevelHostConfiguration = topLevelHostConfiguration; + skyframeExecutor.updateTopLevelHostConfiguration(topLevelHostConfiguration); } /**
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java index f614812..22ec4fa 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java
@@ -1397,6 +1397,9 @@ PrecomputedValue.REMOTE_OUTPUTS_MODE.set(injectable(), remoteOutputsMode); } + /** Called each time there is a new top-level host configuration. */ + protected void updateTopLevelHostConfiguration(BuildConfiguration topLevelHostConfiguration) {} + /** * Asks the Skyframe evaluator to build the value for BuildConfigurationCollection and returns the * result.