diff options
author | lberki <lberki@google.com> | 2018-04-06 01:52:58 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-04-06 01:54:28 -0700 |
commit | 78651d4a407fd6114d7d1129a26d5500fdeb21f2 (patch) | |
tree | ee22d1d982268b975ab094998703c6e447d83cd1 /src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java | |
parent | 24f19ec2679dd93b1ac5b06e46f3b35807d6e217 (diff) |
Move shell executable to its own configuration fragment.
RELNOTES: None.
PiperOrigin-RevId: 191861074
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java b/src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java index 51cbfbc261..a068e51b72 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java @@ -165,16 +165,6 @@ public class BuildConfiguration { } /** - * Returns the shell to be used. - * - * <p>Each configuration instance must have at most one fragment that returns non-null. - */ - @SuppressWarnings("unused") - public PathFragment getShellExecutable() { - return null; - } - - /** * Returns { 'option name': 'alternative default' } entries for options where the * "real default" should be something besides the default specified in the {@link Option} * declaration. @@ -1115,9 +1105,6 @@ public class BuildConfiguration { // is mutable, so a cached value there could fall out of date when it's updated. private final boolean actionsEnabled; - // TODO(bazel-team): Move this to a configuration fragment. - private final PathFragment shellExecutable; - /** * The global "make variables" such as "$(TARGET_CPU)"; these get applied to all rules analyzed in * this configuration. @@ -1335,8 +1322,6 @@ public class BuildConfiguration { OutputDirectory.MIDDLEMAN.getRoot( RepositoryName.MAIN, outputDirName, directories, mainRepositoryName); - this.shellExecutable = computeShellExecutable(); - this.actionEnv = setupActionEnvironment(); this.testEnv = setupTestEnvironment(); @@ -1642,13 +1627,6 @@ public class BuildConfiguration { } /** - * Returns the path to sh. - */ - public PathFragment getShellExecutable() { - return shellExecutable; - } - - /** * Returns a regex-based instrumentation filter instance that used to match label * names to identify targets to be instrumented in the coverage mode. */ @@ -1930,22 +1908,6 @@ public class BuildConfiguration { } /** - * Collects executables defined by fragments. - */ - private PathFragment computeShellExecutable() { - PathFragment result = null; - - for (Fragment fragment : fragments.values()) { - if (fragment.getShellExecutable() != null) { - Verify.verify(result == null); - result = fragment.getShellExecutable(); - } - } - - return result; - } - - /** * Returns the transition that produces the "artifact owner" for this configuration, or null * if this configuration is its own owner. */ |