Merge pull request #43951 from Flamefire:linker-bin-path

PiperOrigin-RevId: 339551422
Change-Id: I8c1a8b74594d1715a1ce400bb1a9875d22cb97e5
This commit is contained in:
TensorFlower Gardener 2020-10-28 15:39:28 -07:00
commit 1fd1576580

View File

@ -497,12 +497,11 @@ def _features(cpu, compiler, ctx):
),
flag_set(
actions = all_link_actions(),
flag_groups = [
flag_group(flags = (
["-Wl,-no-as-needed"] if cpu == "local" else []
) + [
"-B" + ctx.attr.linker_bin_path,
]),
flag_groups = ([
flag_group(flags = ["-Wl,-no-as-needed"])
] if cpu == "local" else []) + ([
flag_group(flags = ["-B" + ctx.attr.linker_bin_path])
] if ctx.attr.linker_bin_path else []) + [
flag_group(
flags = ["@%{linker_param_file}"],
expand_if_available = "linker_param_file",