[libc-commits] [compiler-rt] [libc] [libcxx] [libcxxabi] [libunwind] [llvm] [openmp] [Runtimes] Introduce variables containing resource dir paths (PR #177953)
Michael Kruse via libc-commits
libc-commits at lists.llvm.org
Thu Feb 26 08:23:19 PST 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")
----------------
Meinersbur wrote:
gfortran puts them into `${INSTALL_PREFIX}/lib/gcc/<target>/<version>/finclude`. Flang currently puts them into `${INSTALL_PREFIX}/include/flang` which casues all sorts of problems mentioned in #171515. #171515 is going to put them into `${INSTALL_PREFIX}/lib/clang/<target>/<version>/finclude/flang`. I kept the additional `flang` subdirectory to avoid mixing gfortran and flang modules. This should not be relevant for the compiler-private resource directory, but for sysroots that are not in the compiler's resource directory.
https://github.com/llvm/llvm-project/pull/177953
More information about the libc-commits
mailing list