[libc-commits] [compiler-rt] [libc] [libcxx] [libcxxabi] [libunwind] [llvm] [openmp] [Runtimes] Introduce variables containing resource dir paths (PR #177953)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Tue Mar 10 00:58:49 PDT 2026


================
@@ -47,6 +38,17 @@ function (get_toolchain_library_subdir outvar)
 endfunction ()
 
 
+# Corresponds to Flang's ToolChain::getDefaultIntrinsicModuleDir().
+function (get_toolchain_fortran_module_subdir outvar)
+  set(outval "finclude/flang")
----------------
petrhosek wrote:

I don't think we need to include the `flang` subdirectory, there shouldn't be any mixing between GFortran and Clang since they use a different resource directory path (`${INSTALL_PREFIX}/lib/gcc` vs `${INSTALL_PREFIX}/lib/clang`).

https://github.com/llvm/llvm-project/pull/177953


More information about the libc-commits mailing list