[PATCH] D53334: [Frontend] Show diagnostics on prebuilt module configuration mismatch too

Whisperity via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 24 02:44:35 PDT 2018


whisperity added a comment.

@dblaikie I have created a test, but unfortunately `%clang_cpp` in LIT invokes `clang --driver-mode=cpp` which is not the same as if `clang++` is called. I'm trying to construct the following command-line

`clang++ -fmodules-ts -fprebuilt-module-path=%t/mods --precompile -c file.cppm -o file.pcm`

However, using `%clang_cc1` I can't get it to accept `--precompile` as a valid argument, and using `%clang_cpp` I get an "unused argument" warning for `--precompile` and the output file is just a preprocessed output (like `-E`), which will, of course, cause errors, but not the errors I am wanting to test about.


Repository:
  rC Clang

https://reviews.llvm.org/D53334





More information about the cfe-commits mailing list