diff options
author | 2015-07-27 12:51:14 +0000 | |
---|---|---|
committer | 2015-07-27 12:59:53 +0000 | |
commit | 62a6d2542fd15e8d25e63e7359e59ead748b4e5c (patch) | |
tree | 79e7ecddc52f0279319c15bf1b126e0758082188 /src/main/java/com/google/devtools/build/lib/rules/nativedeps/NativeDepsHelper.java | |
parent | 4b0bee1af36d0ffab7d86158a853a8a7ee113300 (diff) |
Refactor C++ link action creation.
Remove an unnecessary intermediate method in CcBinary and provide a helper
method in CcLinkAction.Builder that simplifies several call sites that just
want to add CcLinkParams to the link action.
--
MOS_MIGRATED_REVID=99172303
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/nativedeps/NativeDepsHelper.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/nativedeps/NativeDepsHelper.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/nativedeps/NativeDepsHelper.java b/src/main/java/com/google/devtools/build/lib/rules/nativedeps/NativeDepsHelper.java index 2318a2a9f9..09a68241bf 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/nativedeps/NativeDepsHelper.java +++ b/src/main/java/com/google/devtools/build/lib/rules/nativedeps/NativeDepsHelper.java @@ -130,7 +130,6 @@ public abstract class NativeDepsHelper { private static NativeDepsRunfiles maybeCreateNativeDepsAction(final RuleContext ruleContext, CcLinkParams linkParams, Collection<String> extraLinkOpts, BuildConfiguration configuration, CcToolchainProvider toolchain, PathFragment nativeDepsPath, Root bindirIfShared) { - if (linkParams.getLibraries().isEmpty()) { return NativeDepsRunfiles.EMPTY; } |