[cmake] Add clang resource dir and extra interpreter args into library #1119
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 182 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.312
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1119"
general
weight: 0.35
vgvassilev
MakeResourcesPath() derives the clang builtin-header location from LLVM_BINARY_DIR at runtime, which misses wherever clang's headers are installed under a different prefix than LLVM's libraries (e.g. NixOS), leaving a probe for a
clangon PATH as the only fallback.clang -print-resource-dir). The detected value stays local so it cannot outlive a reconfigure against a different Clang_DIR. MakeResourcesPath() prefers the compiled-in directory when it still exists at runtime.Both values are delivered through a configure_file-generated header (BakedArgs.h) rather than -D definitions, escaping exactly once for the C string literal. An earlier -D-based variant required double escaping to compensate for the extra shell unescape layer and still corrupted literal backslashes (n -> n/2 round-trip on POSIX); empirically verified with a compile-time check that backslashes, quotes, spaces, and ';' now survive exactly.