[Driver] [C++20] [Modules] Support -fmodule-output= (2/2)
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Mon, 16 Jan 2023 03:21:57 +0000 (11:21 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Mon, 16 Jan 2023 06:01:05 +0000 (14:01 +0800)
commit3e9e8d6ef44244491e25f7bc918f6e91e16b7714
treedeceba0bfff62cbecebdab24e3e65595dab62e3c
parentb1ac375e11c801be2a1e07e87be91ae54decf2eb
[Driver] [C++20] [Modules] Support -fmodule-output= (2/2)

The patch implements `-fmodule-output=`. This is helpful if the build
systems want to generate these output files in other places which is not
the same with -o specified or the input file lived.

Reviewed By: dblaikie, iains

Differential Revision: https://reviews.llvm.org/D137059
clang/include/clang/Driver/Options.td
clang/lib/Driver/Driver.cpp
clang/test/Driver/module-output.cppm