From 14803e6f63d4785ecd95adeeae3ac42a728b3857 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 10 May 2022 02:06:31 +0000 Subject: [PATCH] Optimization is now working. --- toolchain/cc_toolchain_config.bzl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/toolchain/cc_toolchain_config.bzl b/toolchain/cc_toolchain_config.bzl index d119c245a..259947777 100644 --- a/toolchain/cc_toolchain_config.bzl +++ b/toolchain/cc_toolchain_config.bzl @@ -6,6 +6,7 @@ load( "flag_group", "flag_set", "tool_path", + "with_feature_set", ) all_link_actions = [ @@ -172,7 +173,13 @@ def _impl(ctx): ], ) - features = [linker_flags, compiler_flags, sysroot_flags] + features = [ + linker_flags, + compiler_flags, + sysroot_flags, + feature(name = "dbg"), + feature(name = "opt"), + ] if "mingw" in ctx.attr.target_full_name: features.append(