File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10714,6 +10714,16 @@ prepare_build(bool print_fingerprint,
1071410714 // DWARF. Same function, not a second copy of the decision.
1071510715 for (auto& f : mcpp::toolchain::graph_runtime_compile_flags(*tc))
1071610716 flags += " " + f;
10717+ // AND THE APPLE CROSS TARGET'S SDK, WHICH THE TOOLCHAIN RESOLUTION
10718+ // HAD ALREADY PUT ON THIS CHANNEL AND THIS ASSIGNMENT REPLACES.
10719+ // The module's C library is the SDK's on the iOS rows (the
10720+ // package supplies the C++ layer alone), and without the sysroot
10721+ // the precompile stops on `mbstate_t` inside libc++'s own
10722+ // headers. Measured on macos-15 with `llvm.libcxx` over
10723+ // `arm64-apple-ios18.0`: twenty "reference to unresolved using
10724+ // declaration" errors, every one a C library type.
10725+ if (!tc->appleSdkRoot.empty())
10726+ flags += " -isysroot " + mcpp::xlings::shq(tc->appleSdkRoot.string());
1071710727 }
1071810728 // Everything up to here says which machine the module is for; what
1071910729 // follows says where its headers are. The codegen step needs only the
You can’t perform that action at this time.
0 commit comments