← Back to Pull requests

build: emit native= kind for every rustc-link-search path #1201

Open
unknown opened this pull request with 125 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 25, 2026 14:07 UTC
Author

llama-cpp-sys-2/build.rs prints five cargo:rustc-link-search=<dir> lines with no kind (the out/lib, out/lib64 and build dirs, and the two Vulkan SDK dirs). A path with no kind defaults to all, so Cargo also adds it to the dependency search path (-L dependency= semantics) of every crate that links above llama-cpp-sys-2.

All of these dirs hold native libraries only (llama/ggml static or shared libs, the Vulkan loader), so native is the precise kind. Every other search path in this build script already uses native=.

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 of llama-cpp-2 becomes 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

Diff: 125 lines (+93 / -32) across 1 files Reviewer: madsmtm Review duration: 7742m
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
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 36.9% (MEDIUM) · Higher = larger blast radius
36.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 19.7% · Safe to merge
19.7%