Canonical optimization levels in bazel toolchain (#940)

This commit is contained in:
Brad Kotsopoulos
2021-12-06 13:20:14 -05:00
committed by GitHub
parent c7305b4045
commit a7e4653c22

View File

@@ -572,9 +572,10 @@ def _impl(ctx):
flag_set(
actions = all_compile_actions +
all_link_actions,
flags = ["-O3"],
flags = ["-O2"],
features = ["opt"],
),
# Users can override opt-level with semantic names...
flag_set(
actions = all_compile_actions +
@@ -598,7 +599,7 @@ def _impl(ctx):
flag_set(
actions = all_compile_actions +
all_link_actions,
flags = ["-O2"],
flags = ["-O0"],
features = ["fastbuild"],
),