From db6769bb035560e0661f25377b28bda9e2d8575b Mon Sep 17 00:00:00 2001 From: Grzegorz Lukasik <48226911+glukasiknuro@users.noreply.github.com> Date: Thu, 1 Jul 2021 14:10:21 -0700 Subject: [PATCH] Revert change to use resolved shared lib links Checking whether it fixes https://github.com/bazelbuild/rules_go/issues/2906 --- go/private/rules/cgo.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/go/private/rules/cgo.bzl b/go/private/rules/cgo.bzl index f75e3c954c..685eb5e3f1 100644 --- a/go/private/rules/cgo.bzl +++ b/go/private/rules/cgo.bzl @@ -188,10 +188,10 @@ def _cc_libs_and_flags(target): libs.append(library_to_link.static_library) elif library_to_link.pic_static_library != None: libs.append(library_to_link.pic_static_library) - elif library_to_link.resolved_symlink_interface_library != None: - libs.append(library_to_link.resolved_symlink_interface_library) - elif library_to_link.resolved_symlink_dynamic_library != None: - libs.append(library_to_link.resolved_symlink_dynamic_library) + elif library_to_link.interface_library != None: + libs.append(library_to_link.interface_library) + elif library_to_link.dynamic_library != None: + libs.append(library_to_link.dynamic_library) return libs, flags _DEFAULT_PLATFORM_COPTS = select({