diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/ProtocolBuffers2Support.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/objc/ProtocolBuffers2Support.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/ProtocolBuffers2Support.java b/src/main/java/com/google/devtools/build/lib/rules/objc/ProtocolBuffers2Support.java index d3f8bbf085..8139368952 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/ProtocolBuffers2Support.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/ProtocolBuffers2Support.java @@ -14,7 +14,6 @@ package com.google.devtools.build.lib.rules.objc; -import com.google.common.base.Optional; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Iterables; @@ -87,7 +86,11 @@ final class ProtocolBuffers2Support { public ProtocolBuffers2Support registerCompilationActions() throws RuleErrorException, InterruptedException { CompilationSupport compilationSupport = - new CompilationSupport.Builder().setRuleContext(ruleContext).doNotUseDeps().build(); + new CompilationSupport.Builder() + .setRuleContext(ruleContext) + .doNotUseDeps() + .doNotUsePch() + .build(); compilationSupport.registerCompileAndArchiveActions(getCommon()); return this; @@ -132,7 +135,6 @@ final class ProtocolBuffers2Support { Iterable<Artifact> generatedSources = getGeneratedProtoOutputs(getSourceExtension()); return new CompilationArtifacts.Builder() .setIntermediateArtifacts(new IntermediateArtifacts(ruleContext, "")) - .setPchFile(Optional.<Artifact>absent()) .addAdditionalHdrs(getGeneratedProtoOutputs(getHeaderExtension())) .addAdditionalHdrs(generatedSources) .addNonArcSrcs(generatedSources) |