Merge pull request #9524 from protocolbuffers/sysroot

Change sysroot flags
pull/9529/head
deannagarcia 3 years ago committed by GitHub
commit ddfc233f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      toolchain/cc_toolchain_config.bzl

@ -102,13 +102,18 @@ def _impl(ctx):
],
)
if 'osx' in ctx.attr.target_full_name:
sysroot_action_set = all_link_actions
else:
sysroot_action_set = all_link_actions + all_compile_actions
sysroot_flags = feature(
name = "sysroot_flags",
#Only enable this if a sysroot was specified
enabled = (ctx.attr.sysroot != ""),
flag_sets = [
flag_set(
actions = all_link_actions + all_compile_actions,
actions = sysroot_action_set,
flag_groups = [
flag_group(
flags = [

Loading…
Cancel
Save