Skip to content

Commit a72d402

Browse files
committed
Only use cc_shared_library if it is enabled
1 parent 2ae238a commit a72d402

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rules_haskell_tests/tests/repl-targets/hs_lib_repl_test/maybe_cc_shared_library.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ def maybe_cc_shared_library(name, **kwargs):
66
native.cc_shared_library(
77
name = shared_name,
88
deps = [name],
9-
**kwargs,
9+
**kwargs
1010
)
1111
return shared_name
1212
return name
1313

14-
15-
1614
def _has_cc_shared_library():
15+
if hasattr(cc_common, "check_experimental_cc_shared_library"):
16+
return cc_common.check_experimental_cc_shared_library()
1717
return bazel_features.globals.CcSharedLibraryInfo != None

0 commit comments

Comments
 (0)