Skip to content

Commit 0673b44

Browse files
dmoody256MongoDB Bot
authored and
MongoDB Bot
committed
SERVER-97784 make the cpp_link exec props adjustable (#32690)
GitOrigin-RevId: a290507
1 parent c025557 commit 0673b44

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.bazeliskrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
BAZELISK_BASE_URL=https://mdb-build-public.s3.amazonaws.com/bazel_binary_waterfall_builds/391e70d4d08bf75939998bc125a7ccaf75946e10
1+
BAZELISK_BASE_URL=https://mdb-build-public.s3.amazonaws.com/bazel_binary_waterfall_builds/9ea3a8ad9ffc29090d93780658c3ec19e75d9f17

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.5.0-mongo_391e70d4d0
1+
7.5.0-mongo_9ea3a8ad9f

bazel/mongo_src_rules.bzl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,11 @@ def _mongo_cc_binary_and_test(
21622162
}),
21632163
"target_compatible_with": target_compatible_with + enterprise_compatible,
21642164
"additional_linker_inputs": additional_linker_inputs + MONGO_GLOBAL_ADDITIONAL_LINKER_INPUTS,
2165-
"exec_properties": exec_properties,
2165+
"exec_properties": exec_properties | select({
2166+
# Debug compression significantly reduces .o, .dwo, and .a sizes
2167+
"//bazel/config:compress_debug_compile_enabled": {"cpp_link.coefficient": "6.0"},
2168+
"//conditions:default": {"cpp_link.coefficient": "2.0"},
2169+
}),
21662170
"env": env | SANITIZER_ENV,
21672171
} | kwargs
21682172

0 commit comments

Comments
 (0)