Skip to content

Commit

Permalink
Only use cc_shared_library if it is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Nov 18, 2024
1 parent 2ae238a commit a72d402
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a72d402

Please sign in to comment.