Skip to content

Commit

Permalink
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 Mar 15, 2024
1 parent 8264b62 commit 6769e25
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions features/common/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,23 @@ feature(
],
)

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

feature(
name = "symbol_garbage_collection",
enabled = True,
Expand Down

0 comments on commit 6769e25

Please sign in to comment.