[libc-commits] [clang] [compiler-rt] [flang] [libc] [libcxx] [libcxxabi] [libunwind] [llvm] [openmp] [Flang] Move builtin .mod generation into runtimes (Reapply #137828) (PR #171515)
Matt Arsenault via libc-commits
libc-commits at lists.llvm.org
Tue Apr 21 05:14:56 PDT 2026
================
@@ -6755,6 +6755,17 @@ std::string Driver::GetFilePath(StringRef Name, const ToolChain &TC) const {
if (llvm::sys::fs::exists(Twine(P)))
return std::string(P);
+ // With Flang, also look for instrinsic modules
+ if (IsFlangMode()) {
+ if (std::optional<std::string> IntrPath =
+ TC.getDefaultIntrinsicModuleDir()) {
+ SmallString<128> P(*IntrPath);
----------------
arsenm wrote:
build as std::string to start if you're returning std::string?
https://github.com/llvm/llvm-project/pull/171515
More information about the libc-commits
mailing list