@@ -137,7 +137,7 @@ common --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
137137common --@aspect_rules_ts//ts:default_to_tsc_transpiler
138138
139139# optimized LTO build. you'll need a fairly recent clang for this to work
140- build:thin-lto -c opt
140+ build:thin-lto --config= opt
141141build:thin-lto --cxxopt='-flto=thin'
142142build:thin-lto --linkopt='-flto=thin'
143143
@@ -173,8 +173,9 @@ build:limited-dbg-info --copt='-g1' --copt="-fdebug-info-for-profiling"
173173# Miscellaneous platform-independent options
174174build --@capnp-cpp//src/kj:openssl=True --@capnp-cpp//src/kj:zlib=True --@capnp-cpp//src/kj:brotli=True
175175build --@capnp-cpp//src/capnp:gen_rust=True
176+ # overriden in config=opt
177+ build --@capnp-cpp//src/kj:debug_memory=True
176178build --cxxopt="-fbracket-depth=512" --host_cxxopt="-fbracket-depth=512"
177- build --@capnp-cpp//src/capnp:gen_rust=True
178179
179180# Additional Rust flags (see https://doc.rust-lang.org/rustc/codegen-options/index.html)
180181# Need to disable debug-assertions for fastbuild, should be off automatically for opt.
@@ -342,8 +343,12 @@ build:windows_dbg --linkopt='/OPT:LLDTAILMERGE' --linkopt='/OPT:SAFEICF'
342343# a shared library.
343344build:windows --copt='/Zc:dllexportInlines-'
344345
346+ # optimized configuration
347+ build:opt -c opt
348+ build:opt --@capnp-cpp//src/kj:debug_memory=False
349+
345350# Release configuration.
346- build:release -c opt
351+ build:release --config= opt
347352build:release --@rules_rust//:extra_rustc_flag=-Ccodegen-units=1
348353
349354# enable -O3 for the release configuration. Based on benchmarking there is little difference in
0 commit comments