Change sysroot flags

pull/9524/head
Deanna Garcia 3 years ago
parent 2f7ee91e32
commit cf05c9f84f
  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