Commit dc45858
committed
ci: fix libc++ std.cppm path for CMake import_std on Clang-21+
CMake detects the std.cppm location relative to where libc++.so is linked
(/usr/lib/x86_64-linux-gnu/), producing a normalised path that resolves to
/lib/share/libc++/v1/std.cppm. On Debian/Ubuntu the actual file lives under
/usr/lib/llvm-N/share/libc++/v1/, so every try_compile inner project fails to
generate because the source file does not exist at the expected path.
Create a symlink /lib/share/libc++ -> /usr/lib/llvm-N/share/libc++ before
the build step so CMake can find the module sources. Only needed when
import_std is enabled (the trigger for CMake's module-path detection).1 parent 216549b commit dc45858
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
121 | 133 | | |
122 | 134 | | |
123 | 135 | | |
| |||
0 commit comments