================ @@ -110,20 +110,81 @@ static std::string computeBaseSysRoot(const Driver &D, bool IncludeTriple) { return std::string(SysRootDir); } +static bool hasGCCToolChainAlongSideClang(const Driver &D) { ---------------- petrhosek wrote:
If understand correctly, this should cover the case when we're using newlib (and potentially libgcc and libstdc++) together with Clang (but not using `clang-runtimes`). @quic-garvgupt can you clarify this? If that's the case, then I think this function could use a better name. In either case, I agree with @smithp35 that this logic is fragile since `crt0.o` is commonly used by most C libraries. https://github.com/llvm/llvm-project/pull/121829 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits