From a72d4025578749ff981c3d2f743d2344d719fa07 Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Mon, 18 Nov 2024 09:26:16 +0100 Subject: [PATCH] Only use cc_shared_library if it is enabled --- .../hs_lib_repl_test/maybe_cc_shared_library.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rules_haskell_tests/tests/repl-targets/hs_lib_repl_test/maybe_cc_shared_library.bzl b/rules_haskell_tests/tests/repl-targets/hs_lib_repl_test/maybe_cc_shared_library.bzl index a738c3b6d..abbd0a31b 100644 --- a/rules_haskell_tests/tests/repl-targets/hs_lib_repl_test/maybe_cc_shared_library.bzl +++ b/rules_haskell_tests/tests/repl-targets/hs_lib_repl_test/maybe_cc_shared_library.bzl @@ -6,12 +6,12 @@ def maybe_cc_shared_library(name, **kwargs): native.cc_shared_library( name = shared_name, deps = [name], - **kwargs, + **kwargs ) return shared_name return name - - def _has_cc_shared_library(): + if hasattr(cc_common, "check_experimental_cc_shared_library"): + return cc_common.check_experimental_cc_shared_library() return bazel_features.globals.CcSharedLibraryInfo != None