|
|
@ -133,11 +133,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, includes, dep_ccinfos): |
|
|
|
unsupported_features = ctx.disabled_features, |
|
|
|
unsupported_features = ctx.disabled_features, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
blaze_only_args = {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if _is_google3: |
|
|
|
|
|
|
|
blaze_only_args["grep_includes"] = ctx.file._grep_includes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(compilation_context, compilation_outputs) = cc_common.compile( |
|
|
|
(compilation_context, compilation_outputs) = cc_common.compile( |
|
|
|
actions = ctx.actions, |
|
|
|
actions = ctx.actions, |
|
|
|
feature_configuration = feature_configuration, |
|
|
|
feature_configuration = feature_configuration, |
|
|
@ -148,7 +143,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, includes, dep_ccinfos): |
|
|
|
public_hdrs = hdrs, |
|
|
|
public_hdrs = hdrs, |
|
|
|
user_compile_flags = copts, |
|
|
|
user_compile_flags = copts, |
|
|
|
compilation_contexts = compilation_contexts, |
|
|
|
compilation_contexts = compilation_contexts, |
|
|
|
**blaze_only_args |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
# buildifier: disable=unused-variable |
|
|
|
# buildifier: disable=unused-variable |
|
|
@ -160,7 +154,6 @@ def _cc_library_func(ctx, name, hdrs, srcs, copts, includes, dep_ccinfos): |
|
|
|
compilation_outputs = compilation_outputs, |
|
|
|
compilation_outputs = compilation_outputs, |
|
|
|
linking_contexts = linking_contexts, |
|
|
|
linking_contexts = linking_contexts, |
|
|
|
disallow_dynamic_library = cc_common.is_enabled(feature_configuration = feature_configuration, feature_name = "targets_windows"), |
|
|
|
disallow_dynamic_library = cc_common.is_enabled(feature_configuration = feature_configuration, feature_name = "targets_windows"), |
|
|
|
**blaze_only_args |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
return CcInfo( |
|
|
|
return CcInfo( |
|
|
|