Make sure flag_group.flags is non-empty
This commit is contained in:
parent
b6bc26301d
commit
b24a50b67d
@ -497,12 +497,11 @@ def _features(cpu, compiler, ctx):
|
|||||||
),
|
),
|
||||||
flag_set(
|
flag_set(
|
||||||
actions = all_link_actions(),
|
actions = all_link_actions(),
|
||||||
flag_groups = [
|
flag_groups = ([
|
||||||
flag_group(flags = (
|
flag_group(flags = ["-Wl,-no-as-needed"])
|
||||||
["-Wl,-no-as-needed"] if cpu == "local" else []
|
] if cpu == "local" else []) + ([
|
||||||
) + (
|
flag_group(flags = ["-B" + ctx.attr.linker_bin_path])
|
||||||
["-B" + ctx.attr.linker_bin_path] if ctx.attr.linker_bin_path else []
|
] if ctx.attr.linker_bin_path" else []) + [
|
||||||
),
|
|
||||||
flag_group(
|
flag_group(
|
||||||
flags = ["@%{linker_param_file}"],
|
flags = ["@%{linker_param_file}"],
|
||||||
expand_if_available = "linker_param_file",
|
expand_if_available = "linker_param_file",
|
||||||
|
Loading…
Reference in New Issue
Block a user