Only add the linker inputs to the outputs if fake
@@ -759,7 +759,9 @@ public final class CcLinkingHelper {
if (dynamicLinkType.isExecutable()) {
ccLinkingOutputs.setExecutable(linkerOutput);
}
+ if (fake) {
ccLinkingOutputs.addLinkActionInputs(dynamicLinkAction.getInputs());
+ }
actionConstructionContext.registerAction(dynamicLinkAction);
LinkerInputs.LibraryToLink dynamicLibrary = dynamicLinkAction.getOutputLibrary();
