aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2016-02-11 21:09:39 +0000
committerGravatar David Chen <dzc@google.com>2016-02-11 22:24:26 +0000
commit9a4d96dab006e375d8671825e77b26828ffc3904 (patch)
tree3a575ad25b29650b15abab3f86e6604514bb1056 /src/main/java/com
parentaaee4d465c41b1518725d95b7bf00760b8aebd20 (diff)
Support MOSTLY_STATIC with --build_test_dwp.
-- MOS_MIGRATED_REVID=114469301
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java
index 7d25f9040a..b8c0727bee 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java
@@ -275,7 +275,7 @@ public abstract class CcBinary implements RuleConfiguredTargetFactory {
// For cc_test rules, include the dwp in the runfiles if Fission is enabled and the test was
// built statically.
if (TargetUtils.isTestRule(ruleContext.getRule())
- && linkStaticness == LinkStaticness.FULLY_STATIC
+ && linkStaticness != LinkStaticness.DYNAMIC
&& cppConfiguration.shouldBuildTestDwp()) {
filesToBuild = NestedSetBuilder.fromNestedSet(filesToBuild).add(dwpFile).build();
}