[flang][driver] Add support for `-J/-module-dir`
authorArnamoy Bhattacharyya <arnamoy10@gmail.com>
Thu, 4 Feb 2021 16:13:04 +0000 (16:13 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Thu, 4 Feb 2021 16:31:40 +0000 (16:31 +0000)
commit985a42fdf8ae3117442ea129b684569fa6942a71
tree65a79bba9a61d03c8b120e9f1f572eca95e3b0fb
parenta83475d34b4550ff5bd40430d6537e630eb761f1
[flang][driver] Add support for `-J/-module-dir`

Add support for option -J/-module-dir in the new Flang driver.  This
will allow for including module files in other directories, as the
default search path is currently the working folder. This also provides
an option of storing the output module in the specified folder.

Differential Revision: https://reviews.llvm.org/D95448
12 files changed:
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Flang.cpp
clang/lib/Driver/ToolChains/Flang.h
flang/include/flang/Frontend/CompilerInstance.h
flang/include/flang/Frontend/CompilerInvocation.h
flang/lib/Frontend/CompilerInstance.cpp
flang/lib/Frontend/CompilerInvocation.cpp
flang/lib/Frontend/FrontendActions.cpp
flang/test/Flang-Driver/driver-help-hidden.f90
flang/test/Flang-Driver/driver-help.f90
flang/test/Flang-Driver/include-module.f90
flang/test/Flang-Driver/write-module.f90 [new file with mode: 0644]