diff options
author | hlopko <hlopko@google.com> | 2017-09-25 07:08:25 -0400 |
---|---|---|
committer | John Cater <jcater@google.com> | 2017-09-25 09:40:09 -0400 |
commit | 7084156b634acfe55a8e2a536665f85d4963efec (patch) | |
tree | a7430c5daeeeee5a3fd8aaac4b077561b0d4e661 /src | |
parent | 878ea50b2b1aa61fbf4d21631c4dbf78a05c5397 (diff) |
Remove unnecessary collectLinkstamp switch
All callers passed true, so there's no need to have the boolean there.
RELNOTES: None.
PiperOrigin-RevId: 169888322
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CcLibrary.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcLibrary.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcLibrary.java index 9cf350ae76..0b4c2dfef2 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcLibrary.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcLibrary.java @@ -91,7 +91,6 @@ public abstract class CcLibrary implements RuleConfiguredTargetFactory { init(semantics, context, builder, staticLinkType, /*neverLink =*/ false, linkStatic, - /*collectLinkstamp =*/ true, /*addDynamicRuntimeInputArtifactsToRunfiles =*/ false); return builder.build(); } @@ -103,7 +102,6 @@ public abstract class CcLibrary implements RuleConfiguredTargetFactory { LinkTargetType staticLinkType, boolean neverLink, boolean linkStatic, - boolean collectLinkstamp, boolean addDynamicRuntimeInputArtifactsToRunfiles) throws RuleErrorException, InterruptedException { final CcCommon common = new CcCommon(ruleContext); @@ -134,11 +132,8 @@ public abstract class CcLibrary implements RuleConfiguredTargetFactory { ruleContext.getRule().getImplicitOutputsFunction() != ImplicitOutputsFunction.NONE) .setLinkType(staticLinkType) .setNeverLink(neverLink) - .addPrecompiledFiles(precompiledFiles); - - if (collectLinkstamp) { - helper.addLinkstamps(ruleContext.getPrerequisites("linkstamp", Mode.TARGET)); - } + .addPrecompiledFiles(precompiledFiles) + .addLinkstamps(ruleContext.getPrerequisites("linkstamp", Mode.TARGET)); Artifact soImplArtifact = null; boolean supportsDynamicLinker = |