diff options
author | Rumou Duan <rduan@google.com> | 2016-07-27 15:14:29 +0000 |
---|---|---|
committer | Adam Michael <ajmichael@google.com> | 2016-07-28 18:36:29 -0400 |
commit | 009e05956acde1e9d61befad72f25375a5bad57b (patch) | |
tree | 8a14ae6bc171e8c98c71701104034af1912b515c /src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java | |
parent | 1b7abbf17405e7168272ab91fef13550cdbef5cc (diff) |
Experimental java annotation support with unpredictable action inputs/outputs in j2objc_library behind flag --experimental_j2objc_annotation_processing
Also added flag --experimental_zip_tree_artifact to switch on and off the zipping implementation of tree artifact generation.
--
MOS_MIGRATED_REVID=128586669
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java b/src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java index 8d8235dc54..7efef81544 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java @@ -229,7 +229,12 @@ public final class IntermediateArtifacts { * artifact. */ public Artifact objFile(Artifact source) { - return inUniqueObjsDir(source, ".o"); + if (source.isTreeArtifact()) { + PathFragment rootRelativePath = source.getRootRelativePath().replaceName("obj_files"); + return ruleContext.getTreeArtifact(rootRelativePath, ruleContext.getBinOrGenfilesDirectory()); + } else { + return inUniqueObjsDir(source, ".o"); + } } /** |