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 汇总。
Activity
Sunrisepeak commentedon May 16, 2026
macos-todo
speak-agent commentedon Jul 30, 2026
已完成,关闭。
LLVM 三平台适配早已闭环:
ci-linux.yml/ci-macos.yml/ci-windows.yml各带 e2e 分支(ci-*-e2e.yml),Windows 侧另有 LLVM/Clang + MSVC STL 全链(PR feat: Windows support — LLVM/Clang + MSVC STL + full CI pipeline #52),macOS 侧bootstrap-macos.yml。mcpp toolchain install llvm <ver>在三平台可用;msvc@system作为 Windows 的 detection-first 系统工具链(0.0.88),MinGW 族与 Linux→Windows 交叉链(0.0.92)也已进生态。-nostdinc++cfg 下需显式-lc++)已实现:src/build/flags.cppm:538-539的ldStdlibDefault/ldStdlibTest;链接期的-lSystem问题另见 NULL (保留) #43。后续单独的 LLVM 相关缺陷各自有独立 issue(如 #259 裸机 runner 上 llvm payload 的 glibc 运行期依赖、#256 clang 20/22 的模块 BMI 前端崩溃),不再由本 issue 汇总。