diff options
author | shahan <shahan@google.com> | 2018-04-17 15:48:59 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-04-17 15:50:21 -0700 |
commit | 9cbf52f7119e06e8de7649d6e46e20507e68c35e (patch) | |
tree | 7de47a9b6d3067df40cc391ae91924108dbc6f6f /src/main/java | |
parent | 88bfd1ead4619fae1252c242ac82a55aab4f4bb1 (diff) |
Adds support to go compilation to respect the build_runfile_manifests flag.
PiperOrigin-RevId: 193270108
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/SourceManifestAction.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/SourceManifestAction.java b/src/main/java/com/google/devtools/build/lib/analysis/SourceManifestAction.java index 912037333d..2e165300aa 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/SourceManifestAction.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/SourceManifestAction.java @@ -304,10 +304,18 @@ public final class SourceManifestAction extends AbstractFileWriteAction { public Builder(String prefix, ManifestType manifestType, ActionOwner owner, Artifact output, boolean legacyExternalRunfiles) { - this.runfilesBuilder = new Runfiles.Builder(prefix, legacyExternalRunfiles); - manifestWriter = manifestType; + this(manifestType, owner, output, new Runfiles.Builder(prefix, legacyExternalRunfiles)); + } + + public Builder( + ManifestType manifestType, + ActionOwner owner, + Artifact output, + Runfiles.Builder runfilesBuilder) { + this.manifestWriter = manifestType; this.owner = owner; this.output = output; + this.runfilesBuilder = runfilesBuilder; } @VisibleForTesting // Only used for testing. |