1

Adds supports_dynamic_linker feature

With this feature, cc_library generates a .so as well as a .a and the
"dynamic_library" output group is enabled.
This commit is contained in:
Jeremy Volkman 2022-12-16 16:44:57 -08:00 committed by Motiejus Jakštys
parent 947402c843
commit 0db5d2d9e6

View File

@ -129,9 +129,15 @@ def _zig_cc_toolchain_config_impl(ctx):
flag_sets = dynamic_library_flag_sets,
)
supports_dynamic_linker = feature(
name = "supports_dynamic_linker",
enabled = True,
)
features = [
compile_and_link_flags,
default_linker_flags,
supports_dynamic_linker,
] + _compilation_mode_features(ctx)
return cc_common.create_cc_toolchain_config_info(