Skip to content

Commit

Permalink
[features] Add LTO feature
Browse files Browse the repository at this point in the history
Signed-off-by: Luís Marques <[email protected]>
  • Loading branch information
luismarques committed May 30, 2023
1 parent 8ab715c commit 7427f78
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions platforms/riscv32/features/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,23 @@ feature(
provides = ["compilation_mode"],
)

feature(
name = "lto",
enabled = False,
flag_sets = [
flag_set(
actions = CPP_ALL_COMPILE_ACTIONS + C_ALL_COMPILE_ACTIONS + LD_ALL_ACTIONS,
flag_groups = [
flag_group(
flags = [
"-flto",
],
),
],
),
],
)

feature(
name = "guards",
enabled = False,
Expand Down

0 comments on commit 7427f78

Please sign in to comment.