[flang] Add .mod file dependencies
authorTim Keith <tkeith@nvidia.com>
Tue, 31 Dec 2019 22:08:12 +0000 (14:08 -0800)
committerTim Keith <tkeith@nvidia.com>
Tue, 31 Dec 2019 22:08:12 +0000 (14:08 -0800)
commit96ce00bba2ae1edb7aa3ae3c5a448224588a3b02
treec6cd27347eccdf6a81438276cd1a081383442bae
parent20a9a8154df89293167aadbc6420f9f65518ce1e
[flang] Add .mod file dependencies

Make compilation of other predefined module files depend on
__fortran_builtins.mod. Currently only iso_c_binding.f90 and
iso_fortran_env.f90 depend on it but others could in the future.

Create the .f18.mod files by copying from the .mod files so that
we don't have to worry about dependencies for those.

Original-commit: flang-compiler/f18@8209ad3d32909573e9ef72327ba61932f8967587
Reviewed-on: https://github.com/flang-compiler/f18/pull/899
flang/module/iso_c_binding.f90
flang/module/iso_fortran_env.f90
flang/test/semantics/canondo16.f90
flang/tools/f18/CMakeLists.txt