Commit 774b827
committed
fix: include MSVC effective triple in fingerprint (Windows)
Clang on Windows auto-detects the MSVC version at compile time and
embeds it in module AST files (e.g. x86_64-pc-windows-msvc19.44.35227).
But -dumpmachine returns just x86_64-pc-windows-msvc (no version).
When MSVC updates a patch version (35226 → 35227), the fingerprint
didn't change, so mcpp reused cached std.pcm compiled for the old
version → "AST file was compiled for different target" error.
Fix: probe clang's -print-effective-triple which includes the MSVC
version, and append to driverIdent for fingerprint computation.
Also: ensure sysroot complete by symlinking linux kernel headers
from payload xpkgs into the GCC sysroot directory.1 parent a2b18b8 commit 774b827
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
72 | 92 | | |
73 | 93 | | |
74 | 94 | | |
| |||
0 commit comments