f.ld = std::format("{}{}{}{}{}", full_static, static_stdlib, sysroot_flag, b_flag, runtime_dirs); #if defined(__APPLE__) // macOS: explicitly link libc++ — xlings LLVM's cfg uses -nostdinc++ // which may suppress the implicit -lc++ that clang++ normally adds. std::string stdlib_link = isClang ? " -lc++" : ""; #else std::string stdlib_link; #endif f.ld = std::format("{}{}{}{}{}{}", full_static, static_stdlib, sysroot_flag, b_flag, runtime_dirs, stdlib_link);
已完成,关闭。
LLVM 三平台适配早已闭环:
ci-linux.yml
ci-macos.yml
ci-windows.yml
ci-*-e2e.yml
bootstrap-macos.yml
mcpp toolchain install llvm <ver>
msvc@system
-nostdinc++
-lc++
src/build/flags.cppm:538-539
ldStdlibDefault
ldStdlibTest
-lSystem
后续单独的 LLVM 相关缺陷各自有独立 issue(如 #259 裸机 runner 上 llvm payload 的 glibc 运行期依赖、#256 clang 20/22 的模块 BMI 前端崩溃),不再由本 issue 汇总。