Canonical optimization levels in bazel toolchain (#940)
This commit is contained in:
@@ -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"],
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user