build: emit native= kind for every rustc-link-search path #1201
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 125 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1201"
general
weight: 0.35
madsmtm
llama-cpp-sys-2/build.rsprints fivecargo:rustc-link-search=<dir>lines with no kind (theout/lib,out/lib64and build dirs, and the two Vulkan SDK dirs). A path with no kind defaults toall, so Cargo also adds it to the dependency search path (-L dependency=semantics) of every crate that links abovellama-cpp-sys-2.All of these dirs hold native libraries only (llama/ggml static or shared libs, the Vulkan loader), so
nativeis the precise kind. Every other search path in this build script already usesnative=.Why it matters: build caches that key on compiler inputs refuse to cache a rustc invocation that carries an
all-kind search path, because the directory contents are not a precise input. With this change, every crate downstream ofllama-cpp-2becomes cacheable again.Tested on macOS (aarch64, Metal) and Android (arm64-v8a,
dynamic-link+android-shared-stdcxx): both build and link as before.🤖 Generated with Claude Code