Repository navigation
Commit 1f4552e
committed
fix(bench): tell xmake where libc++ is, and drop to three repetitions
**1. Windows 的 `import std` 不是缺口,是没告诉 xmake 去哪找。** 日志把解法写在
脸上,而我先前把它当成平台缺口豁免了:
warning: std and std.compat modules not found!
maybe try to add --sdk=<PATH/TO/LLVM> or install libc++
error: <mcpp> missing std dependency for module mcpp.build.provisions
载荷里**本来就带着** `share/libc++/v1/std.cppm`。报错点名的是被测工程的模块,
所以读起来像「这个工程坏了」,而不是「引擎不知道自己的标准库在哪」——
windows/clang 格子每个场景都这么红。SDK 根目录由解析后的驱动路径推出
(`…/xim-x-llvm/<ver>/bin/clang++` → `…/<ver>`),和工具链 pin 同源,不需要手工同步。
1 parent 4904c33 commit 1f4552e
2 files changed
Lines changed: 43 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
29 | 44 | | |
30 | 45 | | |
31 | 46 | | |
| |||
63 | 78 | | |
64 | 79 | | |
65 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
66 | 99 | | |
67 | 100 | | |
68 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
0 commit comments