Skip to content

Commit

Permalink
[riscv32] make fastbuild and opt the same
Browse files Browse the repository at this point in the history
This makes the fastbuild and opt build configurations the same, since
the `rust_binary` rule in `rules_rust` invokes the opt configuration on
data deps.

Signed-off-by: Tim Trippel <[email protected]>
  • Loading branch information
timothytrippel committed Dec 6, 2023
1 parent 6a5abb3 commit c0caaac
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions platforms/riscv32/features/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,26 @@ feature(
provides = ["compilation_mode"],
)

feature(
name = "opt",
enabled = False,
flag_sets = [
flag_set(
actions = CPP_ALL_COMPILE_ACTIONS + C_ALL_COMPILE_ACTIONS,
flag_groups = [
flag_group(
flags = [
"-Os",
"-g",
"-gdwarf-4",
],
),
],
),
],
provides = ["compilation_mode"],
)

feature(
name = "guards",
enabled = False,
Expand Down Expand Up @@ -147,6 +167,7 @@ feature_set(
":architecture",
":all_warnings_as_errors",
":fastbuild",
":opt",
":sys_spec",
":rv32_bitmanip",
],
Expand Down

0 comments on commit c0caaac

Please sign in to comment.