diff options
author | 2015-09-14 20:33:59 +0000 | |
---|---|---|
committer | 2015-09-15 20:26:05 +0000 | |
commit | 6a22219663e7f08603e17d003438e51cf0d306df (patch) | |
tree | dd0899ee5e2d617136a3e75c7bc35929ec046d08 /src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java | |
parent | 5dd681987d5a03fa2a191e1b1c3aa9c71cccb957 (diff) |
Have clang output .d dependency files during ObjcCompile.
These are not currently used by anything. The next step is for bazel to read these files and use them to check the declared dependencies for correctness.
RELNOTES:
--
MOS_MIGRATED_REVID=103023531
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 | 9 |
1 files changed, 8 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 ff6b573aee..59f9b07f67 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 @@ -72,7 +72,7 @@ final class IntermediateArtifacts { ruleContext.getConfiguration().getBinDirectory()); return artifact; } - + /** * Returns a derived artifact in the bin directory obtained by appending some extension to the end * of the given {@link PathFragment}. @@ -332,4 +332,11 @@ final class IntermediateArtifacts { public Artifact runnerScript() { return appendExtension("_runner.sh"); } + + /** + * Dependency file that is generated when compiling the {@code source} artifact. + */ + public Artifact dotdFile(Artifact source) { + return inUniqueObjsDir(source, ".d"); + } } |