correct bugs with shared and interface libs in cc_toolchain_util.bzl (#38)

This commit is contained in:
irengrig 2018-08-20 16:46:24 +02:00 committed by GitHub
parent 840796ef4d
commit 85b4e59103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -133,13 +133,14 @@ def _build_libraries_to_link_and_runtime_artifact(ctx, files, cc_toolchain, targ
runtime_artifacts = []
if files.shared_libraries != None:
for lib in files.shared_libraries:
shared_library += _build_shared_library_to_link(ctx, lib, cc_toolchain, targets_windows)
runtime_artifact += shared_library.artifact()
shared_library = _build_shared_library_to_link(ctx, lib, cc_toolchain, targets_windows)
shared_libraries += [shared_library]
runtime_artifacts += [shared_library.artifact()]
interface_libraries = []
if files.interface_libraries != None:
for lib in files.interface_libraries:
interface_libraries += _build_interface_library_to_link(ctx, lib, cc_toolchain, targets_windows)
interface_libraries += [_build_interface_library_to_link(ctx, lib, cc_toolchain, targets_windows)]
dynamic_libraries_for_linking = None
if len(interface_libraries) > 0: