================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to