Fix cc_common.link runtime library selection #4225
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.47) × (1 − Review Confidence (0.66)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 179 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.35 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.311
Real PR Conversation Timeline
2 items
Changes Requested
Hey, thank you, this is very nice!
I think there may be a couple of other stray places where we need to plumb these cc-std-dylibs for this setup to work. Could you add a toy example like a rust_binary that depends on a cc_library that exercises the C++ stdlib, and a test that runs the rust_binary under --dynamic_mode=fully (e.g., via a user-defined transition), ensuring that it succeeds at runtime (so the necessary cc-std-dylibs are appropriately made available to the rust binary at dynamic-link-time? -- and if that setup doesn't match your intended real use case please let me know :)
krasimirgg
KirillTim
Summary
--dynamic_mode=fullywhen callingcc_common.linklink_depscc_binarytargetsWhy
cc_common.linkdefaultslink_deps_staticallyto true. Rust targets therefore selected the static C++ runtime even under fully dynamic linking.Impact
Rust targets using
cc_common.linknow select the dynamic C++ runtime when built with--dynamic_mode=fully, matchingcc_binarybehavior.Validation
This is a follow-up to 226c4886e9243e9b6045ce4adb7e6c1bb6a4ab07